Skip to content

Commit

Permalink
fix arguments in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Apr 2, 2023
1 parent 1a3d541 commit f6a7f55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/unit-global/esnext.iterator.indexed.js
Expand Up @@ -11,8 +11,8 @@ QUnit.test('Iterator#indexed', assert => {

assert.arrayEqual(indexed.call(createIterator(['a', 'b', 'c'])).toArray().toString(), '0,a,1,b,2,c', 'basic functionality');

assert.throws(() => indexed.call(undefined, TypeError));
assert.throws(() => indexed.call(null, TypeError));
assert.throws(() => indexed.call({}, TypeError));
assert.throws(() => indexed.call([], TypeError));
assert.throws(() => indexed.call(undefined), TypeError);
assert.throws(() => indexed.call(null), TypeError);
assert.throws(() => indexed.call({}), TypeError);
assert.throws(() => indexed.call([]), TypeError);
});
8 changes: 4 additions & 4 deletions tests/unit-pure/esnext.iterator.indexed.js
Expand Up @@ -11,8 +11,8 @@ QUnit.test('Iterator#indexed', assert => {

assert.arrayEqual(indexed.call(createIterator(['a', 'b', 'c'])).toArray().toString(), '0,a,1,b,2,c', 'basic functionality');

assert.throws(() => indexed.call(undefined, TypeError));
assert.throws(() => indexed.call(null, TypeError));
assert.throws(() => indexed.call({}, TypeError));
assert.throws(() => indexed.call([], TypeError));
assert.throws(() => indexed.call(undefined), TypeError);
assert.throws(() => indexed.call(null), TypeError);
assert.throws(() => indexed.call({}), TypeError);
assert.throws(() => indexed.call([]), TypeError);
});

0 comments on commit f6a7f55

Please sign in to comment.