Skip to content

Commit 40428f0

Browse files
🔍 test: Fix t.throws calls.
1 parent 6ae80e4 commit 40428f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/src/Integer/arithmetic.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ test( 'simple in-place operations with 12 and 20' , t => {
114114
t.is( b.imul( a ).toString() , '-103680' ) ;
115115

116116
t.is( a.idiv( b ).toString() , '0' ) ;
117-
t.throws( () => b.idiv( a ).toString() , ZeroDivisionError ) ;
117+
t.throws( () => b.idiv( a ).toString() , { instanceOf: ZeroDivisionError } ) ;
118118

119119
t.is( a.imod( b ).toString() , '0' ) ;
120-
t.throws( () => b.imod( a ).toString() , ZeroDivisionError ) ;
120+
t.throws( () => b.imod( a ).toString() , { instanceOf: ZeroDivisionError } ) ;
121121

122122
}) ;
123123

@@ -180,10 +180,10 @@ test( 'simple in-place operations with -12 and 20' , t => {
180180
t.is( b.imul( a ).toString() , '-46080' ) ;
181181

182182
t.is( a.idiv( b ).toString() , '0' ) ;
183-
t.throws( ( ) => b.idiv( a ).toString() , ZeroDivisionError ) ;
183+
t.throws( ( ) => b.idiv( a ).toString() , { instanceOf: ZeroDivisionError } ) ;
184184

185185
t.is( a.imod( b ).toString() , '0' ) ;
186-
t.throws( ( ) => b.imod( a ).toString() , ZeroDivisionError ) ;
186+
t.throws( ( ) => b.imod( a ).toString() , { instanceOf: ZeroDivisionError } ) ;
187187

188188
}) ;
189189

0 commit comments

Comments
 (0)