FIX: Don't run in testing mode

This commit is contained in:
Robin Ward 2017-06-02 12:42:00 -04:00
parent 62e6108756
commit 007873af3c
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ export default function loadScript(url, opts) {
// to dynamically load more JS. In that case, add the `scriptTag: true` // to dynamically load more JS. In that case, add the `scriptTag: true`
// option. // option.
if (opts.scriptTag) { if (opts.scriptTag) {
if (Ember.Testing) { if (Ember.testing) {
throw `In test mode scripts cannot be loaded async ${cdnUrl}`; throw `In test mode scripts cannot be loaded async ${cdnUrl}`;
} }
loadWithTag(cdnUrl, cb); loadWithTag(cdnUrl, cb);