@@ -472,7 +472,14 @@ describe('NFT metadata updating', () => {
472
472
( ) => '' ,
473
473
) ;
474
474
expect ( spyUpdateMetadata ) . toHaveBeenCalledTimes ( 1 ) ;
475
- expect ( spyUpdateMetadata ) . toHaveBeenCalledWith ( nftCreationTx . tx_id , { id : nftCreationTx . tx_id , nft : true } , txProcessor . CREATE_NFT_MAX_RETRIES , logger ) ;
475
+ expect ( spyUpdateMetadata ) . toHaveBeenCalledWith ( nftCreationTx . tx_id , { id : nftCreationTx . tx_id , nft : true } , txProcessor . CREATE_NFT_MAX_RETRIES , expect . objectContaining ( {
476
+ error : expect . any ( Function ) ,
477
+ info : expect . any ( Function ) ,
478
+ warn : expect . any ( Function ) ,
479
+ defaultMeta : {
480
+ requestId : expect . any ( String )
481
+ } ,
482
+ } ) ) ;
476
483
expect ( result ) . toStrictEqual ( { success : true } ) ;
477
484
} ) ;
478
485
@@ -495,7 +502,14 @@ describe('NFT metadata updating', () => {
495
502
message : `onNewNftEvent failed for token ${ nftCreationTx . tx_id } ` ,
496
503
} ;
497
504
expect ( result ) . toStrictEqual ( expectedResult ) ;
498
- expect ( spyCreateOrUpdate ) . toHaveBeenCalledWith ( nftCreationTx . tx_id , txProcessor . CREATE_NFT_MAX_RETRIES , logger ) ;
505
+ expect ( spyCreateOrUpdate ) . toHaveBeenCalledWith ( nftCreationTx . tx_id , txProcessor . CREATE_NFT_MAX_RETRIES , expect . objectContaining ( {
506
+ error : expect . any ( Function ) ,
507
+ info : expect . any ( Function ) ,
508
+ warn : expect . any ( Function ) ,
509
+ defaultMeta : {
510
+ requestId : expect . any ( String )
511
+ } ,
512
+ } ) ) ;
499
513
500
514
spyCreateOrUpdate . mockReset ( ) ;
501
515
spyCreateOrUpdate . mockRestore ( ) ;
0 commit comments