Skip to content

Commit

Permalink
fix(cli build): reassign global.define.amd after assigning karma over…
Browse files Browse the repository at this point in the history
…ride function

aurelia/testing ComponentTester wasn't working. Bootstrapper failed to return with an error that there was no loader defined. Tracked the error down to a dependency reassigning window.require because define.amd was undefined.

aurelia/testing issue #71
  • Loading branch information
ryan-smith-virteom committed Mar 6, 2018
1 parent dda7d63 commit 9eee46f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/resources/test/require.aurelia-karma.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@

return originalDefine(name, deps, m);
}
global.define.amd = originalDefine.amd;
}

function requireTests() {
Expand Down

0 comments on commit 9eee46f

Please sign in to comment.