Skip to content

Commit 724cd67

Browse files
test: cast FormData to string instead of ts-ignore
1 parent f9b5657 commit 724cd67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/openapi-fetch/test/index.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ describe("client", () => {
13551355

13561356
it('multipart/form-data with a file', async () => {
13571357
const TEST_STRING = 'Hello this is text file string';
1358-
1358+
13591359
const file = new Blob([TEST_STRING], { type: 'text/plain' });
13601360
const formData = new FormData();
13611361
formData.append('file', file);
@@ -1373,8 +1373,8 @@ describe("client", () => {
13731373
},
13741374
});
13751375
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,
13781378
})
13791379

13801380
expect(data?.text).toBe(TEST_STRING)

0 commit comments

Comments
 (0)