mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-10 11:09:43 +08:00
fix: LinkedList test (#712)
This commit is contained in:
parent
d581548b4c
commit
1c4e02879a
@ -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', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user