Skip to content

Commit 6adcb25

Browse files
committed
coverage
1 parent 8c8dc2a commit 6adcb25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/parallel/test-priority-queue.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ const PriorityQueue = require('internal/priority_queue');
102102
// Check that removing the last item doesn't throw
103103
queue.removeAt(6);
104104

105+
// Check that removing an item that doesn't exist doesn't throw
106+
queue.removeAt(15);
107+
105108
assert.strictEqual(queue.shift().value, 1);
106109
assert.strictEqual(queue.shift().value, 2);
107110
assert.strictEqual(queue.shift().value, 2);

0 commit comments

Comments
 (0)