FIX: Improper error message

This commit is contained in:
Robin Ward
2017-06-02 12:36:48 -04:00
parent 096177d0d5
commit 62e6108756

View File

@@ -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);