From b906dc4f4700689536a4100731d4879a29f297dc Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 2 Jun 2017 12:42:00 -0400 Subject: [PATCH] FIX: Don't run in testing mode --- app/assets/javascripts/discourse/lib/load-script.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/load-script.js.es6 b/app/assets/javascripts/discourse/lib/load-script.js.es6 index ddcdaf3d774..8baf4b905d8 100644 --- a/app/assets/javascripts/discourse/lib/load-script.js.es6 +++ b/app/assets/javascripts/discourse/lib/load-script.js.es6 @@ -77,7 +77,7 @@ export default function loadScript(url, opts) { // to dynamically load more JS. In that case, add the `scriptTag: true` // option. if (opts.scriptTag) { - if (Ember.Test) { + if (Ember.testing) { throw `In test mode scripts cannot be loaded async ${cdnUrl}`; } loadWithTag(cdnUrl, cb);