fix: LinkedList test (#712)

This commit is contained in:
Kim Chan 2022-01-28 03:31:19 +08:00 committed by GitHub
parent d581548b4c
commit 1c4e02879a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,7 +230,7 @@ describe('LinkedList', () => {
expect(node).toBeDefined(); expect(node).toBeDefined();
expect(node.value.value).toBe(2); expect(node.value.value).toBe(2);
expect(node.value.customValue).toBe('test2'); expect(node.value.customValue).toBe('test2');
expect(linkedList.find({ value: 2, customValue: 'test5' })).toBeNull(); expect(linkedList.find({ value: { value: 2, customValue: 'test5' } })).toBeNull();
}); });
it('should find preferring callback over compare function', () => { it('should find preferring callback over compare function', () => {