@@ -460,9 +460,14 @@ describe('update suite', function suite() {
460460 supply : 1 ,
461461 image : 'http://website.com/image.jpeg' ,
462462 attributes : [ {
463- title : 'test ' ,
463+ title : 'test_image ' ,
464464 type : 'image' ,
465- url : 'http://test.com' ,
465+ imageUrl : 'f47bfb7e0c6ad240046c0c9839e17186/af378b9c-83fb-4be9-a204-e7e690334702/b7b91787-61bc-4e15-a18a-924198dc959f.jpeg' ,
466+ originalImageUrl : 'f47bfb7e0c6ad240046c0c9839e17186/af378b9c-83fb-4be9-a204-e7e690334702/b7b91787-61bc-4e15-a18a-924198dc959f.jpeg' ,
467+ } , {
468+ title : 'test_model' ,
469+ type : 'model' ,
470+ uploadId : 'eda9b976-b467-4361-b9fc-b9162a14ee76' ,
466471 } ] ,
467472 } ;
468473
@@ -486,9 +491,26 @@ describe('update suite', function suite() {
486491 assert . equal ( fileInfo . file . nft . currency , 'usd' ) ;
487492 assert . equal ( fileInfo . file . nft . supply , 1 ) ;
488493 assert . equal ( fileInfo . file . nft . image , 'http://website.com/image.jpeg' ) ;
489- assert . equal ( fileInfo . file . nft . attributes [ 0 ] . title , 'test' ) ;
494+
495+ // Assertions for the first attribute
496+ assert . equal ( fileInfo . file . nft . attributes [ 0 ] . title , 'test_image' ) ;
490497 assert . equal ( fileInfo . file . nft . attributes [ 0 ] . type , 'image' ) ;
491- assert . equal ( fileInfo . file . nft . attributes [ 0 ] . url , 'http://test.com' ) ;
498+ assert . equal (
499+ fileInfo . file . nft . attributes [ 0 ] . imageUrl ,
500+ 'f47bfb7e0c6ad240046c0c9839e17186/af378b9c-83fb-4be9-a204-e7e690334702/b7b91787-61bc-4e15-a18a-924198dc959f.jpeg'
501+ ) ;
502+ assert . equal (
503+ fileInfo . file . nft . attributes [ 0 ] . originalImageUrl ,
504+ 'f47bfb7e0c6ad240046c0c9839e17186/af378b9c-83fb-4be9-a204-e7e690334702/b7b91787-61bc-4e15-a18a-924198dc959f.jpeg'
505+ ) ;
506+
507+ // Assertions for the second attribute
508+ assert . equal ( fileInfo . file . nft . attributes [ 1 ] . title , 'test_model' ) ;
509+ assert . equal ( fileInfo . file . nft . attributes [ 1 ] . type , 'model' ) ;
510+ assert . equal (
511+ fileInfo . file . nft . attributes [ 1 ] . uploadId ,
512+ 'eda9b976-b467-4361-b9fc-b9162a14ee76'
513+ ) ;
492514 } ) ;
493515 } ) ;
494516
@@ -670,9 +692,14 @@ describe('update suite', function suite() {
670692 supply : 1 ,
671693 image : 'http://website.com/image.jpeg' ,
672694 attributes : [ {
673- title : 'test ' ,
695+ title : 'test_image ' ,
674696 type : 'image' ,
675- url : 'http://test.com' ,
697+ imageUrl : 'f47bfb7e0c6ad240046c0c9839e17186/af378b9c-83fb-4be9-a204-e7e690334702/b7b91787-61bc-4e15-a18a-924198dc959f.jpeg' ,
698+ originalImageUrl : 'f47bfb7e0c6ad240046c0c9839e17186/af378b9c-83fb-4be9-a204-e7e690334702/b7b91787-61bc-4e15-a18a-924198dc959f.jpeg' ,
699+ } , {
700+ title : 'test_model' ,
701+ type : 'model' ,
702+ uploadId : 'eda9b976-b467-4361-b9fc-b9162a14ee76' ,
676703 } ] ,
677704 } ,
678705 } ,
0 commit comments