File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -114,10 +114,10 @@ test( 'simple in-place operations with 12 and 20' , t => {
114
114
t . is ( b . imul ( a ) . toString ( ) , '-103680' ) ;
115
115
116
116
t . is ( a . idiv ( b ) . toString ( ) , '0' ) ;
117
- t . throws ( ( ) => b . idiv ( a ) . toString ( ) , ZeroDivisionError ) ;
117
+ t . throws ( ( ) => b . idiv ( a ) . toString ( ) , { instanceOf : ZeroDivisionError } ) ;
118
118
119
119
t . is ( a . imod ( b ) . toString ( ) , '0' ) ;
120
- t . throws ( ( ) => b . imod ( a ) . toString ( ) , ZeroDivisionError ) ;
120
+ t . throws ( ( ) => b . imod ( a ) . toString ( ) , { instanceOf : ZeroDivisionError } ) ;
121
121
122
122
} ) ;
123
123
@@ -180,10 +180,10 @@ test( 'simple in-place operations with -12 and 20' , t => {
180
180
t . is ( b . imul ( a ) . toString ( ) , '-46080' ) ;
181
181
182
182
t . is ( a . idiv ( b ) . toString ( ) , '0' ) ;
183
- t . throws ( ( ) => b . idiv ( a ) . toString ( ) , ZeroDivisionError ) ;
183
+ t . throws ( ( ) => b . idiv ( a ) . toString ( ) , { instanceOf : ZeroDivisionError } ) ;
184
184
185
185
t . is ( a . imod ( b ) . toString ( ) , '0' ) ;
186
- t . throws ( ( ) => b . imod ( a ) . toString ( ) , ZeroDivisionError ) ;
186
+ t . throws ( ( ) => b . imod ( a ) . toString ( ) , { instanceOf : ZeroDivisionError } ) ;
187
187
188
188
} ) ;
189
189
You can’t perform that action at this time.
0 commit comments