Skip to content

Commit

Permalink
Preserve Qunit autostart configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sglanzer-deprecated committed Apr 28, 2015
1 parent 5ac8583 commit 384f632
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions vendor/blanket-require.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ var blanketLoader = function(moduleName) {
// Defer the start of the test run until a call to QUnit.start() this
// allows the modules to be loaded/instrumented prior to the test run
if (typeof(QUnit) === 'object') {
var autostart = QUnit.config.autostart;
window._$blanket_qunit = {
autostart: autostart
};
QUnit.config.autostart = false;
}

Expand Down
6 changes: 1 addition & 5 deletions vendor/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ function cliFinish() {
blanket.onTestsDone = cliFinish;

if (typeof(QUnit) === 'object') {
// I'm not sure which ember-cli release introduced this behavior,
// but QUnit.start() is called by the ember-cli framework as of
// [email protected] and causes a conflict if QUnit.start() is
// called again here
// QUnit.start();
QUnit.config.autostart = window._$blanket_qunit.autostart;
}
else if (typeof(mocha) === 'object') {

Expand Down

0 comments on commit 384f632

Please sign in to comment.