Skip to content

Commit 567641c

Browse files
🔍 test: Fix t.throws calls.
1 parent 6797abd commit 567641c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/src/indordseq.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ test( 'indordseq (seq behavior)' , assert => {
8585

8686
assert.deepEqual( list( IndOrdSeq.from( 'cdba' ) ) , list( 'abcd' ) ) ;
8787

88-
assert.throws( s.get.bind( s , -1 ) , /index/ ) ;
89-
assert.throws( s.get.bind( s , list( s ).length ) , /index/ ) ;
88+
assert.throws( s.get.bind( s , -1 ) , { message: /index/ } ) ;
89+
assert.throws( s.get.bind( s , list( s ).length ) , { message: /index/ } ) ;
9090

9191
} ) ;

test/src/seq.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ test( 'seq' , assert => {
5858

5959
assert.deepEqual( list( Seq.from( 'abcd' ) ) , list( 'abcd' ) ) ;
6060

61-
assert.throws( s.get.bind( s , -1 ) , /index/ ) ;
62-
assert.throws( s.get.bind( s , list( s ).length ) , /index/ ) ;
61+
assert.throws( s.get.bind( s , -1 ) , { message: /index/ } ) ;
62+
assert.throws( s.get.bind( s , list( s ).length ) , { message: /index/ } ) ;
6363

64-
assert.throws( s.set.bind( s , -1 , 'Z' ) , /index/ ) ;
65-
assert.throws( s.set.bind( s , list( s ).length , 'Z' ) , /index/ ) ;
64+
assert.throws( s.set.bind( s , -1 , 'Z' ) , { message: /index/ } ) ;
65+
assert.throws( s.set.bind( s , list( s ).length , 'Z' ) , { message: /index/ } ) ;
6666

6767
} ) ;

0 commit comments

Comments
 (0)