Skip to content

Commit 5500924

Browse files
🔍 test: Fix t.throws calls.
1 parent 94f6f5a commit 5500924

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/src/heapq.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ test( "heapq" , t => {
107107

108108
) ;
109109

110-
t.throws( heapq.heappop.bind( null , heapq.heapify( increasing , [ ] ) ) , IndexError , "pop raises" ) ;
111-
t.throws( heapq.heapreplace.bind( null , heapq.heapify( increasing , [ ] ) , 1 ) , IndexError , "replace raises" ) ;
110+
t.throws( heapq.heappop.bind( null , heapq.heapify( increasing , [ ] ) ) , { instanceOf: IndexError } , "pop raises" ) ;
111+
t.throws( heapq.heapreplace.bind( null , heapq.heapify( increasing , [ ] ) , 1 ) , { instanceOf: IndexError } , "replace raises" ) ;
112112

113113
const h = heapq.heapify( increasing , [ ] ) ;
114114

0 commit comments

Comments
 (0)