From 5500924178bf07df5810aa19079d668150bc3c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Fri, 24 Apr 2020 17:06:50 +0200 Subject: [PATCH] :mag: test: Fix t.throws calls. --- test/src/heapq.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/heapq.js b/test/src/heapq.js index 4340b31..3622917 100644 --- a/test/src/heapq.js +++ b/test/src/heapq.js @@ -107,8 +107,8 @@ test( "heapq" , t => { ) ; - t.throws( heapq.heappop.bind( null , heapq.heapify( increasing , [ ] ) ) , IndexError , "pop raises" ) ; - t.throws( heapq.heapreplace.bind( null , heapq.heapify( increasing , [ ] ) , 1 ) , IndexError , "replace raises" ) ; + t.throws( heapq.heappop.bind( null , heapq.heapify( increasing , [ ] ) ) , { instanceOf: IndexError } , "pop raises" ) ; + t.throws( heapq.heapreplace.bind( null , heapq.heapify( increasing , [ ] ) , 1 ) , { instanceOf: IndexError } , "replace raises" ) ; const h = heapq.heapify( increasing , [ ] ) ;