File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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 => {
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
You can’t perform that action at this time.
0 commit comments