summaryrefslogtreecommitdiff
path: root/cli/tests/unit/request_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-11-03 16:19:29 +0100
committerGitHub <noreply@github.com>2020-11-03 16:19:29 +0100
commit8e914be7420715620cad74fbb020c5e87ac875a2 (patch)
tree2fefc0111f85533de2bd24e54f70c6c1241e3d3b /cli/tests/unit/request_test.ts
parente736d0f60f6cdf38e2d317ee08a7125de9e57d69 (diff)
build: migrate to dlint (#8176)
This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code.
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);
});