Revert "DEV: Support for running theme test with Ember CLI" (#15547)

This reverts commit ea84a82f77.

This is causing problems with `/theme-qunit` on legacy, non-ember-cli production sites. Reverting while we work on a fix
This commit is contained in:
David Taylor
2022-01-11 23:38:59 +00:00
committed by GitHub
parent 1d0e5ae4c8
commit 252bb87ab3
26 changed files with 129 additions and 227 deletions

View File

@@ -13,11 +13,9 @@ module ApplicationHelper
@extra_body_classes ||= Set.new
end
def discourse_config_environment(testing: false)
def discourse_config_environment
# TODO: Can this come from Ember CLI somehow?
config = {
modulePrefix: "discourse",
{ modulePrefix: "discourse",
environment: Rails.env,
rootURL: Discourse.base_path,
locationType: "auto",
@@ -34,16 +32,7 @@ module ApplicationHelper
version: "#{Discourse::VERSION::STRING} #{Discourse.git_version}",
exportApplicationGlobal: true
}
}
if testing
config[:environment] = "test"
config[:locationType] = "none"
config[:APP][:autoboot] = false
config[:APP][:rootElement] = '#ember-testing'
end
config.to_json
}.to_json
end
def google_universal_analytics_json(ua_domain_name = nil)