Skip to content

Commit 1c4e028

Browse files
authoredJan 27, 2022
fix: LinkedList test (trekhleb#712)
1 parent d581548 commit 1c4e028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/data-structures/linked-list/__test__/LinkedList.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ describe('LinkedList', () => {
230230
expect(node).toBeDefined();
231231
expect(node.value.value).toBe(2);
232232
expect(node.value.customValue).toBe('test2');
233-
expect(linkedList.find({ value: 2, customValue: 'test5' })).toBeNull();
233+
expect(linkedList.find({ value: { value: 2, customValue: 'test5' } })).toBeNull();
234234
});
235235

236236
it('should find preferring callback over compare function', () => {

0 commit comments

Comments
 (0)