summaryrefslogtreecommitdiff
path: root/cli/tests/unit/body_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/body_test.ts')
-rw-r--r--cli/tests/unit/body_test.ts8
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"));