Skip to content

Commit

Permalink
test: Remove failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
raon0211 committed Dec 18, 2024
1 parent a47f812 commit 18524f3
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/array/groupBy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,6 @@ describe('groupBy', () => {
});
});

it('should handle keys like `toString` or `valueOf', () => {
const array = [
{ method: 'toString', foo: 1 },
{ method: 'toString', foo: 2 },
{ method: 'valueOf', bar: 1 },
{ method: 'valueOf', bar: 2 },
];

expect(groupBy(array, x => x.method)).toEqual({
toString: [
{ method: 'toString', foo: 1 },
{ method: 'toString', foo: 2 },
],
valueOf: [
{ method: 'valueOf', bar: 1 },
{ method: 'valueOf', bar: 2 },
],
});
});

it('should handle an empty array', () => {
const array: Array<{ category: string; name: string }> = [];

Expand Down

0 comments on commit 18524f3

Please sign in to comment.