diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-06-02 14:24:44 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 00:24:44 -0400 |
commit | 3fe6bc1b82a10bed1d907b749b1cc200659df612 (patch) | |
tree | 02e14128039d015a7256494a50476f61785e6f33 /cli/tests/unit/body_test.ts | |
parent | 8b1b4766a1e747437a2b88fcadc26162a1bec640 (diff) |
fix: Better use of @ts-expect-error (#6038)
Diffstat (limited to 'cli/tests/unit/body_test.ts')
-rw-r--r-- | cli/tests/unit/body_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/unit/body_test.ts b/cli/tests/unit/body_test.ts index fd91b5ced..a6df3102e 100644 --- a/cli/tests/unit/body_test.ts +++ b/cli/tests/unit/body_test.ts @@ -42,8 +42,8 @@ unitTest( const body = buildBody(text); - // @ts-expect-error - body.contentType = "multipart/form-data;boundary=boundary"; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (body as any).contentType = "multipart/form-data;boundary=boundary"; const formData = await body.formData(); assert(formData.has("field_1")); @@ -62,8 +62,8 @@ unitTest( const body = buildBody(text); - // @ts-expect-error - body.contentType = "application/x-www-form-urlencoded"; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (body as any).contentType = "application/x-www-form-urlencoded"; const formData = await body.formData(); assert(formData.has("field_1")); |