Skip to content

Commit b0803f9

Browse files
🔍 test: Fix t.throws calls.
1 parent c8c0ee2 commit b0803f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/src/1-new/parse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { parse } from '../../../src' ;
33

44
test( 'parse' , t => {
55

6-
t.throws( parse.bind( null , 16 , 16 , '!00b0C0def' ) , /invalid/ ) ;
7-
t.throws( parse.bind( null , 37 , 37 , '!' ) , /not implemented/ ) ;
6+
t.throws( parse.bind( null , 16 , 16 , '!00b0C0def' ) , { message: /invalid/ } ) ;
7+
t.throws( parse.bind( null , 37 , 37 , '!' ) , { message: /not implemented/ } ) ;
88

99
t.deepEqual( parse( 2 , 2 , '0' ) , [ 0 ] ) ;
1010
t.deepEqual( parse( 2 , 2 , '1' ) , [ 1 ] ) ;

test/src/1-new/stringify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { stringify } from '../../../src' ;
33

44
test( 'stringify' , t => {
55

6-
t.throws( stringify.bind( null , 37 , 37 , [0] , 0 , 1 ) , /not implemented/ ) ;
6+
t.throws( stringify.bind( null , 37 , 37 , [0] , 0 , 1 ) , { message: /not implemented/ } ) ;
77

88
t.deepEqual( stringify( 2 , 2 , [ 0 ] , 0 , 1 ) , '0' ) ;
99
t.deepEqual( stringify( 2 , 2 , [ 1 ] , 0 , 1 ) , '1' ) ;

0 commit comments

Comments
 (0)