From 567641cbeb5e29254c9330d8332888a002558905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Fri, 24 Apr 2020 16:50:03 +0200 Subject: [PATCH] :mag: test: Fix t.throws calls. --- test/src/indordseq.js | 4 ++-- test/src/seq.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/src/indordseq.js b/test/src/indordseq.js index 357ac79..568efe8 100644 --- a/test/src/indordseq.js +++ b/test/src/indordseq.js @@ -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/ } ) ; } ) ; diff --git a/test/src/seq.js b/test/src/seq.js index fcd16a4..d074428 100644 --- a/test/src/seq.js +++ b/test/src/seq.js @@ -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/ } ) ; } ) ;