From 007873af3c566696f6724c3ab9fb443280f5ffc1 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 700cd16776e..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.Testing) { + if (Ember.testing) { throw `In test mode scripts cannot be loaded async ${cdnUrl}`; } loadWithTag(cdnUrl, cb);