We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9b5657 commit 724cd67Copy full SHA for 724cd67
packages/openapi-fetch/test/index.test.ts
@@ -1355,7 +1355,7 @@ describe("client", () => {
1355
1356
it('multipart/form-data with a file', async () => {
1357
const TEST_STRING = 'Hello this is text file string';
1358
-
+
1359
const file = new Blob([TEST_STRING], { type: 'text/plain' });
1360
const formData = new FormData();
1361
formData.append('file', file);
@@ -1373,8 +1373,8 @@ describe("client", () => {
1373
},
1374
});
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,
+ // TODO: how to get this to accept FormData?
+ body: formData as unknown as string,
1378
})
1379
1380
expect(data?.text).toBe(TEST_STRING)
0 commit comments