Skip to content

Commit

Permalink
add a workaround for node-qunit bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Nov 17, 2021
1 parent 15a28ae commit 841d336
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/pure/web.structured-clone.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ QUnit.module('structuredClone', () => {
cloneTest(value, (orig, clone) => {
assert.notEqual(orig, clone, 'clone should have different reference');
assert.same(typeof clone, 'object', 'clone should be an object');
assert.same(getPrototypeOf(orig), getPrototypeOf(clone), 'clone should have same prototype');
// https://github.com/qunitjs/node-qunit/issues/146
assert.ok(getPrototypeOf(orig) === getPrototypeOf(clone), 'clone should have same prototype');
verifyFunc(orig, clone);
});
}
Expand Down
3 changes: 2 additions & 1 deletion tests/tests/web.structured-clone.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ QUnit.module('structuredClone', () => {
cloneTest(value, (orig, clone) => {
assert.notEqual(orig, clone, 'clone should have different reference');
assert.same(typeof clone, 'object', 'clone should be an object');
assert.same(getPrototypeOf(orig), getPrototypeOf(clone), 'clone should have same prototype');
// https://github.com/qunitjs/node-qunit/issues/146
assert.ok(getPrototypeOf(orig) === getPrototypeOf(clone), 'clone should have same prototype');
verifyFunc(orig, clone);
});
}
Expand Down

0 comments on commit 841d336

Please sign in to comment.