mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
More Qunit tests including a CLI runner
This commit is contained in:
@ -6,9 +6,12 @@ class DiscourseIIFE < Sprockets::Processor
|
||||
path = context.pathname.to_s
|
||||
|
||||
# Only discourse or admin paths
|
||||
return data unless (path =~ /\/javascripts\/discourse/ || path =~ /\/javascripts\/admin/)
|
||||
return data unless (path =~ /\/javascripts\/discourse/ || path =~ /\/javascripts\/admin/ || path =~ /\/test\/javascripts/)
|
||||
|
||||
# Ugh, ignore translations
|
||||
# Ignore the js helper
|
||||
return data if (path =~ /test\_helper\.js/)
|
||||
|
||||
# Ignore translations
|
||||
return data if (path =~ /\/translations/)
|
||||
|
||||
# We don't add IIFEs to handlebars
|
||||
|
Reference in New Issue
Block a user