Skip to content

Commit 4c08fbd

Browse files
committed
Removed some commented code and reverted the assertOk passing a boolean. This should make it default to grabbing the current assert from stack
1 parent bf2ce49 commit 4c08fbd

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

browser/adapters/qunit2.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = function (runner) {
22
var doneStack = [];
3-
//var _async = QUnit.assert.async; // disallow override; bug or feature? (currently: allowing override)
43
var getCurrentAssert = function () {
54
if (runner.config.current) {
65
return runner.config.current.assert;
@@ -9,7 +8,6 @@ module.exports = function (runner) {
98
}
109
return {
1110
pauseTest: function () {
12-
//doneStack.push(QUnit.assert.async.call(getCurrentAssert()));
1311
doneStack.push(getCurrentAssert().async());
1412
},
1513
resumeTest: function () {

test/adapters/qunit2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ QUnit.test("QUnit2 call count", function(assert) {
6262
fakeQunit.test("test", function() {});
6363
adapted.pauseTest();
6464
adapted.resumeTest();
65-
adapted.assertOK(true);
65+
adapted.assertOK();
6666
adapted.equiv();
6767

6868
QUnit.assert.deepEqual(stats, {

0 commit comments

Comments
 (0)