@@ -52,15 +52,15 @@ describe("marketplace", async () => {
5252 const errors : Partial < CodexCreateAvailabilityInput > [ ] = [
5353 { duration : 0 } ,
5454 { totalSize : 0 } ,
55- { totalCollateral : BigInt ( - 1 ) } ,
56- { minPricePerBytePerSecond : BigInt ( - 1 ) } ,
55+ { totalCollateral : - 1 } ,
56+ { minPricePerBytePerSecond : - 1 } ,
5757 ] ;
5858
5959 for ( const err of errors ) {
6060 const field = Object . keys ( err ) [ 0 ] as keyof typeof err ;
6161 assert . ok ( field ) ;
6262
63- it ( `fails to create availability with wrong ${ field } ` , async ( ) => {
63+ it ( `fails to create availability with wrong ${ field } = ${ err [ field ] } ` , async ( ) => {
6464 const response = await spMarketplace . createAvailability ( {
6565 ...body ,
6666 [ field ] : err [ field ] ,
@@ -73,9 +73,7 @@ describe("marketplace", async () => {
7373 response . data . errors [ 0 ] ?. received ,
7474 err [ field ] ?. toString ( )
7575 ) ;
76- assert . ok (
77- response . data . errors [ 0 ] ?. message . startsWith ( "Invalid value:" )
78- ) ;
76+ assert . ok ( response . data . errors [ 0 ] ?. message . startsWith ( "Invalid" ) ) ;
7977 } ) ;
8078 }
8179 } ) ;
@@ -137,9 +135,7 @@ describe("marketplace", async () => {
137135 response . data . errors [ 0 ] ?. received ,
138136 err [ field ] ?. toString ( )
139137 ) ;
140- assert . ok (
141- response . data . errors [ 0 ] ?. message . startsWith ( "Invalid value:" )
142- ) ;
138+ assert . ok ( response . data . errors [ 0 ] ?. message . startsWith ( "Invalid" ) ) ;
143139 } ) ;
144140 }
145141 } ) ;
0 commit comments