mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-12-19 08:59:05 +08:00
Avoid using toBeTruthy() and toBeFalsy() because of type coercion.
This commit is contained in:
@@ -97,7 +97,7 @@ describe('PriorityQueue', () => {
|
||||
priorityQueue.add(200, 0);
|
||||
priorityQueue.add(15, 15);
|
||||
|
||||
expect(priorityQueue.hasValue(70)).toBeFalsy();
|
||||
expect(priorityQueue.hasValue(15)).toBeTruthy();
|
||||
expect(priorityQueue.hasValue(70)).toBe(false);
|
||||
expect(priorityQueue.hasValue(15)).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user