Skip to content

Instantly share code, notes, and snippets.

@arschmitz
Created October 21, 2015 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arschmitz/a388e23f4a20664c538f to your computer and use it in GitHub Desktop.
Save arschmitz/a388e23f4a20664c538f to your computer and use it in GitHub Desktop.
window.completedTests = [];
QUnit.start();
setTimeout( function() {
QUnit.done( function( status ) {
setTimeout( function () {
var returnValue = { tests: window.completedTests, status: status };
callback( returnValue );
}, 100 );
} );
}, 50 );
QUnit.testDone( function( test ) {
window.completedTests.push( test );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment