Skip to content

Commit

Permalink
Checking if runningTests not defined or set to false.
Browse files Browse the repository at this point in the history
In embroider build runningTests is not defined where as in ember-cli  build it is set to false
  • Loading branch information
dnalagatla committed Jul 15, 2019
1 parent 88fab39 commit e6514a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utilities/fastboot-app-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = function fastbootAppModule(prefix, configAppAsString, isModuleU
return [
"",
"if (typeof FastBoot === 'undefined') {",
" if (typeof runningTests === 'undefined') {",
" if (typeof runningTests === 'undefined' || !runningTests) {",
" require('{{MODULE_PREFIX}}/" + appSuffix + "')['default'].create({{CONFIG_APP}});",
" }",
"}",
Expand Down

0 comments on commit e6514a2

Please sign in to comment.