@@ -232,7 +232,9 @@ describe('Recovery Tests', () => {
232232 response . status . should . equal ( 422 ) ;
233233 response . body . should . have . property ( 'error' ) ;
234234 response . body . should . have . property ( 'details' ) ;
235- response . body . details . should . containEql ( 'Invalid parameters provided for UTXO coin recovery' ) ;
235+ response . body . details . should . containEql (
236+ 'UTXO recovery options are required for UTXO coin recovery' ,
237+ ) ;
236238 } ) ;
237239
238240 it ( 'should reject incorrect Solana parameters for a UTXO coin' , async ( ) => {
@@ -267,7 +269,9 @@ describe('Recovery Tests', () => {
267269 response . status . should . equal ( 422 ) ;
268270 response . body . should . have . property ( 'error' ) ;
269271 response . body . should . have . property ( 'details' ) ;
270- response . body . details . should . containEql ( 'Invalid parameters provided for UTXO coin recovery' ) ;
272+ response . body . details . should . containEql (
273+ 'UTXO recovery options are required for UTXO coin recovery' ,
274+ ) ;
271275 } ) ;
272276
273277 it ( 'should reject using legacy coinSpecificParams format' , async ( ) => {
@@ -294,9 +298,12 @@ describe('Recovery Tests', () => {
294298 } ,
295299 } ) ;
296300
297- response . status . should . equal ( 500 ) ;
298- // Since we test that the incorrect format doesn't work anymore
301+ response . status . should . equal ( 422 ) ;
299302 response . body . should . have . property ( 'error' ) ;
303+ response . body . should . have . property ( 'details' ) ;
304+ response . body . details . should . containEql (
305+ 'UTXO recovery options are required for UTXO coin recovery' ,
306+ ) ;
300307 } ) ;
301308 } ) ;
302309
@@ -355,7 +362,7 @@ describe('Recovery Tests', () => {
355362 response . body . should . have . property ( 'error' ) ;
356363 response . body . should . have . property ( 'details' ) ;
357364 response . body . details . should . containEql (
358- 'Invalid parameters provided for ETH-like coin recovery' ,
365+ 'EVM recovery options are required for ETH-like coin recovery' ,
359366 ) ;
360367 } ) ;
361368
@@ -393,7 +400,7 @@ describe('Recovery Tests', () => {
393400 response . body . should . have . property ( 'error' ) ;
394401 response . body . should . have . property ( 'details' ) ;
395402 response . body . details . should . containEql (
396- 'Invalid parameters provided for ETH-like coin recovery' ,
403+ 'EVM recovery options are required for ETH-like coin recovery' ,
397404 ) ;
398405 } ) ;
399406 } ) ;
@@ -448,7 +455,7 @@ describe('Recovery Tests', () => {
448455 response . body . should . have . property ( 'error' ) ;
449456 response . body . should . have . property ( 'details' ) ;
450457 response . body . details . should . containEql (
451- 'Invalid parameters provided for Solana coin recovery' ,
458+ 'Solana recovery options are required for EdDSA coin recovery' ,
452459 ) ;
453460 } ) ;
454461
@@ -479,7 +486,7 @@ describe('Recovery Tests', () => {
479486 response . body . should . have . property ( 'error' ) ;
480487 response . body . should . have . property ( 'details' ) ;
481488 response . body . details . should . containEql (
482- 'Invalid parameters provided for Solana coin recovery' ,
489+ 'Solana recovery options are required for EdDSA coin recovery' ,
483490 ) ;
484491 } ) ;
485492 } ) ;
0 commit comments