Skip to content

Commit

Permalink
🔍 test: Fix t.throws calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Apr 24, 2020
1 parent 6797abd commit 567641c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/src/indordseq.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ test( 'indordseq (seq behavior)' , assert => {

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

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

} ) ;
8 changes: 4 additions & 4 deletions test/src/seq.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ test( 'seq' , assert => {

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

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

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

} ) ;

0 comments on commit 567641c

Please sign in to comment.