@@ -322,8 +322,8 @@ describe('Express Wallet Update Typed Routes Tests', function () {
322322 } ) ;
323323
324324 res . status . should . equal ( 400 ) ;
325- res . body . should . be . an . Array ( ) ;
326- res . body [ 0 ] . should . match ( / s i g n e r H o s t / ) ;
325+ res . body . should . have . property ( 'error' ) ;
326+ res . body . error . should . match ( / s i g n e r H o s t / ) ;
327327 } ) ;
328328
329329 it ( 'should return 400 when signerTlsCert is missing' , async function ( ) {
@@ -337,8 +337,8 @@ describe('Express Wallet Update Typed Routes Tests', function () {
337337 } ) ;
338338
339339 res . status . should . equal ( 400 ) ;
340- res . body . should . be . an . Array ( ) ;
341- res . body [ 0 ] . should . match ( / s i g n e r T l s C e r t / ) ;
340+ res . body . should . have . property ( 'error' ) ;
341+ res . body . error . should . match ( / s i g n e r T l s C e r t / ) ;
342342 } ) ;
343343
344344 it ( 'should return 400 when passphrase is missing' , async function ( ) {
@@ -352,8 +352,8 @@ describe('Express Wallet Update Typed Routes Tests', function () {
352352 } ) ;
353353
354354 res . status . should . equal ( 400 ) ;
355- res . body . should . be . an . Array ( ) ;
356- res . body [ 0 ] . should . match ( / p a s s p h r a s e / ) ;
355+ res . body . should . have . property ( 'error' ) ;
356+ res . body . error . should . match ( / p a s s p h r a s e / ) ;
357357 } ) ;
358358
359359 it ( 'should return 400 when signerHost has invalid type' , async function ( ) {
@@ -367,8 +367,8 @@ describe('Express Wallet Update Typed Routes Tests', function () {
367367 } ) ;
368368
369369 res . status . should . equal ( 400 ) ;
370- res . body . should . be . an . Array ( ) ;
371- res . body [ 0 ] . should . match ( / s i g n e r H o s t / ) ;
370+ res . body . should . have . property ( 'error' ) ;
371+ res . body . error . should . match ( / s i g n e r H o s t / ) ;
372372 } ) ;
373373
374374 it ( 'should return 400 when signerTlsCert has invalid type' , async function ( ) {
@@ -382,8 +382,8 @@ describe('Express Wallet Update Typed Routes Tests', function () {
382382 } ) ;
383383
384384 res . status . should . equal ( 400 ) ;
385- res . body . should . be . an . Array ( ) ;
386- res . body [ 0 ] . should . match ( / s i g n e r T l s C e r t / ) ;
385+ res . body . should . have . property ( 'error' ) ;
386+ res . body . error . should . match ( / s i g n e r T l s C e r t / ) ;
387387 } ) ;
388388
389389 it ( 'should return 400 when passphrase has invalid type' , async function ( ) {
@@ -397,8 +397,8 @@ describe('Express Wallet Update Typed Routes Tests', function () {
397397 } ) ;
398398
399399 res . status . should . equal ( 400 ) ;
400- res . body . should . be . an . Array ( ) ;
401- res . body [ 0 ] . should . match ( / p a s s p h r a s e / ) ;
400+ res . body . should . have . property ( 'error' ) ;
401+ res . body . error . should . match ( / p a s s p h r a s e / ) ;
402402 } ) ;
403403
404404 it ( 'should return 400 when signerMacaroon has invalid type' , async function ( ) {
@@ -413,8 +413,8 @@ describe('Express Wallet Update Typed Routes Tests', function () {
413413 } ) ;
414414
415415 res . status . should . equal ( 400 ) ;
416- res . body . should . be . an . Array ( ) ;
417- res . body [ 0 ] . should . match ( / s i g n e r M a c a r o o n / ) ;
416+ res . body . should . have . property ( 'error' ) ;
417+ res . body . error . should . match ( / s i g n e r M a c a r o o n / ) ;
418418 } ) ;
419419 } ) ;
420420
0 commit comments