refactor: code cleanups
[poolifier.git] / tests / priority-queue.test.mjs
index f3da873405855449119dba52df325992a84f39a0..00ecb33f9d3595840e7b203bd28e6432d8ab4797 100644 (file)
@@ -14,7 +14,7 @@ describe('Priority queue test suite', () => {
       new RangeError('bucketSize must be greater than or equal to 1')
     )
     let priorityQueue = new PriorityQueue()
-    expect(priorityQueue.bucketSize).toBe(Infinity)
+    expect(priorityQueue.bucketSize).toBe(Number.POSITIVE_INFINITY)
     expect(priorityQueue.buckets).toBe(1)
     expect(priorityQueue.size).toBe(0)
     expect(priorityQueue.maxSize).toBe(0)