@@ -55,7 +55,7 @@ describe('delegated-routing-v1-http-api-client', () => {
55
55
headers : {
56
56
'Content-Type' : 'application/json'
57
57
} ,
58
- body : JSON . stringify ( { Providers : providers } )
58
+ body : JSON . stringify ( { Providers : providers } )
59
59
} )
60
60
61
61
const provs = await all ( client . getProviders ( cid ) )
@@ -87,12 +87,12 @@ describe('delegated-routing-v1-http-api-client', () => {
87
87
for ( const contentType of contentTypes ) {
88
88
// Add providers with proper payload structure
89
89
await fetch ( `${ process . env . ECHO_SERVER } /add-providers/${ cid . toString ( ) } ` , {
90
- method : 'POST' ,
91
- headers : {
92
- 'Content-Type' : contentType
93
- } ,
94
- body : JSON . stringify ( { Providers : providers } )
95
- } )
90
+ method : 'POST' ,
91
+ headers : {
92
+ 'Content-Type' : contentType
93
+ } ,
94
+ body : JSON . stringify ( { Providers : providers } )
95
+ } )
96
96
97
97
await new Promise ( ( resolve ) => setTimeout ( resolve , 100 ) )
98
98
const provs = await all ( client . getProviders ( cid ) )
@@ -107,12 +107,12 @@ describe('delegated-routing-v1-http-api-client', () => {
107
107
const cid = CID . parse ( 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn' )
108
108
109
109
const response = await fetch ( `${ process . env . ECHO_SERVER } /add-providers/${ cid . toString ( ) } ` , {
110
- method : 'POST' ,
111
- headers : {
112
- 'Content-Type' : 'text/plain'
113
- } ,
114
- body : 'not json'
115
- } )
110
+ method : 'POST' ,
111
+ headers : {
112
+ 'Content-Type' : 'text/plain'
113
+ } ,
114
+ body : 'not json'
115
+ } )
116
116
117
117
expect ( response . status ) . to . equal ( 400 )
118
118
const errorData = await response . json ( )
@@ -378,7 +378,7 @@ describe('delegated-routing-v1-http-api-client', () => {
378
378
headers : {
379
379
'Content-Type' : 'application/json'
380
380
} ,
381
- body : JSON . stringify ( { Providers : providers } )
381
+ body : JSON . stringify ( { Providers : providers } )
382
382
} )
383
383
384
384
// Reset call count before our test
@@ -434,7 +434,7 @@ describe('delegated-routing-v1-http-api-client', () => {
434
434
headers : {
435
435
'Content-Type' : 'application/json'
436
436
} ,
437
- body : JSON . stringify ( { Providers : providers } )
437
+ body : JSON . stringify ( { Providers : providers } )
438
438
} )
439
439
440
440
// Reset call count
0 commit comments