Skip to content

Commit

Permalink
Fix issue around testem.js not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav0 committed Oct 1, 2018
1 parent 63b8eb0 commit ac116eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
window.assetMap = {
loader: "{{rootURL}}assets/loader.js",
twiddleDeps: "{{rootURL}}assets/twiddle-deps.js",
testem: "{{rootURL}}testem.js",
testSupport: "{{rootURL}}assets/test-support.js",
testSupportCss: "{{rootURL}}assets/test-support.css",
testLoader: "{{rootURL}}assets/test-loader.js",
Expand Down
4 changes: 1 addition & 3 deletions app/services/ember-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,14 +362,12 @@ export default Ember.Service.extend({
depScriptTags += `<script type="text/javascript" src="${window.assetMap.twiddleDeps}"></script>`;

if (isTestingEnabled) {
const testJSFiles = ['testLoader', 'testem'];
const testJSFiles = ['testLoader', 'testSupport'];

testJSFiles.forEach(jsFile => {
depScriptTags += `<script type="text/javascript" src="${window.assetMap[jsFile]}"></script>`;
});

depScriptTags += `<script type="text/javascript" src="${window.assetMap.testSupport}"></script>`;

depCssLinkTags += `<link rel="stylesheet" type="text/css" href="${window.assetMap.testSupportCss}">`;

testStuff += `
Expand Down

0 comments on commit ac116eb

Please sign in to comment.