File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/openapi-fetch/test Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1355,7 +1355,7 @@ describe("client", () => {
1355
1355
1356
1356
it ( 'multipart/form-data with a file' , async ( ) => {
1357
1357
const TEST_STRING = 'Hello this is text file string' ;
1358
-
1358
+
1359
1359
const file = new Blob ( [ TEST_STRING ] , { type : 'text/plain' } ) ;
1360
1360
const formData = new FormData ( ) ;
1361
1361
formData . append ( 'file' , file ) ;
@@ -1373,8 +1373,8 @@ describe("client", () => {
1373
1373
} ,
1374
1374
} ) ;
1375
1375
const { data} = await client . POST ( "/multipart-form-data-file-upload" , {
1376
- // @ts -ignore // TODO: how to get this to accept FormData?
1377
- body : formData ,
1376
+ // TODO: how to get this to accept FormData?
1377
+ body : formData as unknown as string ,
1378
1378
} )
1379
1379
1380
1380
expect ( data ?. text ) . toBe ( TEST_STRING )
You can’t perform that action at this time.
0 commit comments