Skip to content

Commit

Permalink
[Tests] increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 11, 2024
1 parent a925944 commit 692dceb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ module.exports = function (groupBy, t) {
'grouping a string works as expected'
);

var string = '🥰💩🙏😈';
var obj2 = groupBy(string, function (char) {
return char < '🙏' ? 'before' : 'after';
});

s2t.deepEqual(obj2, { __proto__: null, after: ['🥰', '🙏'], before: ['💩', '😈'] });

s2t.end();
});

Expand Down

0 comments on commit 692dceb

Please sign in to comment.