@@ -74,22 +74,9 @@ describe('Tao:', function () {
7474 keychains,
7575 index : 0 , // Wrong index for this address
7676 } )
77- . should . be . rejectedWith ( / a d d r e s s v a l i d a t i o n f a i l u r e / ) ;
78- } ) ;
79-
80- it ( 'should throw for missing index' , async function ( ) {
81- const keychains = [
82- { commonKeychain : isWalletAddressTestData . commonKeychain } ,
83- { commonKeychain : isWalletAddressTestData . commonKeychain } ,
84- { commonKeychain : isWalletAddressTestData . commonKeychain } ,
85- ] ;
86-
87- await baseCoin
88- . isWalletAddress ( {
89- address : isWalletAddressTestData . rootAddress ,
90- keychains,
91- } )
92- . should . be . rejectedWith ( / I n v a l i d o r m i s s i n g i n d e x / ) ;
77+ . should . be . rejectedWith (
78+ `address validation failure: ${ isWalletAddressTestData . receiveAddress } is not a wallet address`
79+ ) ;
9380 } ) ;
9481
9582 it ( 'should throw for invalid address' , async function ( ) {
@@ -105,7 +92,7 @@ describe('Tao:', function () {
10592 keychains,
10693 index : 0 ,
10794 } )
108- . should . be . rejectedWith ( / i n v a l i d a d d r e s s / ) ;
95+ . should . be . rejectedWith ( ' invalid address: invalidaddress' ) ;
10996 } ) ;
11097
11198 it ( 'should throw for missing keychains' , async function ( ) {
@@ -115,7 +102,7 @@ describe('Tao:', function () {
115102 keychains : [ ] ,
116103 index : 0 ,
117104 } )
118- . should . be . rejectedWith ( / m i s s i n g r e q u i r e d p a r a m k e y c h a i n s / ) ;
105+ . should . be . rejectedWith ( ' missing required param keychains' ) ;
119106 } ) ;
120107 } ) ;
121108
0 commit comments