Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 02880de

Browse filesBrowse files
committed
add simple test to reproduce groupBy regression
1 parent 8561fcb commit 02880de
Copy full SHA for 02880de

File tree

1 file changed

+9
-0
lines changed
Filter options

1 file changed

+9
-0
lines changed

‎__tests__/regression.ts

Copy file name to clipboard
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { describe, expect, it } from '@jest/globals';
2+
import { List } from 'immutable';
3+
4+
describe('undefined groupBy', () => {
5+
it('should not throw an error when groupBy is called with undefined', () => {
6+
const list = List([1, 2, 3]);
7+
expect(() => list.groupBy(() => undefined)).not.toThrow();
8+
});
9+
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.