Skip to content

Commit

Permalink
Asynchronously detect + setup the testFramework
Browse files Browse the repository at this point in the history
allows:

* testem.js to be loaded as soon as possible
* allowing testem to catch all errors
  * as the test framework itself can fail to load
* much better user experience in failure scenarios
  • Loading branch information
stefanpenner committed Jan 4, 2016
1 parent 0908483 commit 7b8657b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/testem/testem_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function hookIntoTestFramework(socket) {
jasmine2Adapter(socket);
} else if (typeof jasmine === 'object') {
jasmineAdapter(socket);
} else if ((typeof mocha).match(/function|object/)) {
} else if (typeof Mocha === 'function') {
mochaAdapter(socket);
} else if (typeof QUnit === 'object') {
qunitAdapter(socket);
Expand Down

0 comments on commit 7b8657b

Please sign in to comment.