summaryrefslogtreecommitdiff
path: root/cli/tests/unit/request_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/request_test.ts')
-rw-r--r--cli/tests/unit/request_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/unit/request_test.ts b/cli/tests/unit/request_test.ts
index 6fc8c0eb5..8132e0184 100644
--- a/cli/tests/unit/request_test.ts
+++ b/cli/tests/unit/request_test.ts
@@ -10,7 +10,7 @@ unitTest(function fromInit(): void {
},
});
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ // deno-lint-ignore no-explicit-any
assertEquals("ahoyhoy", (req as any)._bodySource);
assertEquals(req.url, "http://foo/");
assertEquals(req.headers.get("test-header"), "value");
@@ -18,13 +18,13 @@ unitTest(function fromInit(): void {
unitTest(function fromRequest(): void {
const r = new Request("http://foo/");
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ // deno-lint-ignore no-explicit-any
(r as any)._bodySource = "ahoyhoy";
r.headers.set("test-header", "value");
const req = new Request(r);
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ // deno-lint-ignore no-explicit-any
assertEquals((req as any)._bodySource, (r as any)._bodySource);
assertEquals(req.url, r.url);
assertEquals(req.headers.get("test-header"), r.headers.get("test-header"));
@@ -64,6 +64,6 @@ unitTest(async function cloneRequestBodyStream(): Promise<void> {
assertEquals(b1, b2);
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ // deno-lint-ignore no-explicit-any
assert((r1 as any)._bodySource !== (r2 as any)._bodySource);
});