Skip to content

Commit

Permalink
refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Nov 22, 2021
1 parent 5e7bb0c commit deb552b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/pure/esnext.array.group-by-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ QUnit.test('Array#groupByMap', assert => {
assert.same(that, array, 'correct link to array in callback');
assert.same(this, context, 'correct callback context');
}, context);
assert.ok(groupByMap([], it => it) instanceof Map, 'returns Map');
assert.true(groupByMap([], it => it) instanceof Map, 'returns Map');
assert.deepEqual(from(groupByMap([1, 2, 3], it => it % 2)), [[1, [1, 3]], [0, [2]]], '#1');
assert.deepEqual(
from(groupByMap([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], it => `i${ it % 5 }`)),
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/esnext.array.group-by-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ QUnit.test('Array#groupByMap', assert => {
assert.same(that, array, 'correct link to array in callback');
assert.same(this, context, 'correct callback context');
}, context);
assert.ok([].groupByMap(it => it) instanceof Map, 'returns Map');
assert.true([].groupByMap(it => it) instanceof Map, 'returns Map');
assert.deepEqual(from([1, 2, 3].groupByMap(it => it % 2)), [[1, [1, 3]], [0, [2]]], '#1');
assert.deepEqual(
from([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].groupByMap(it => `i${ it % 5 }`)),
Expand Down

0 comments on commit deb552b

Please sign in to comment.