diff options
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/command_test.ts | 2 | ||||
-rw-r--r-- | tests/unit/event_target_test.ts | 10 | ||||
-rw-r--r-- | tests/unit/globals_test.ts | 3 | ||||
-rw-r--r-- | tests/unit/http_test.ts | 5 | ||||
-rw-r--r-- | tests/unit/resources_test.ts | 3 | ||||
-rw-r--r-- | tests/unit/stat_test.ts | 3 | ||||
-rw-r--r-- | tests/unit/tty_test.ts | 3 | ||||
-rw-r--r-- | tests/unit/utime_test.ts | 3 |
8 files changed, 22 insertions, 10 deletions
diff --git a/tests/unit/command_test.ts b/tests/unit/command_test.ts index 770a568c4..dd8352547 100644 --- a/tests/unit/command_test.ts +++ b/tests/unit/command_test.ts @@ -269,8 +269,6 @@ Deno.test( Deno.test( { permissions: { run: true, read: true } }, - // deno lint bug, see https://github.com/denoland/deno_lint/issues/1206 - // deno-lint-ignore require-await async function childProcessExplicitResourceManagement() { let dead = undefined; { diff --git a/tests/unit/event_target_test.ts b/tests/unit/event_target_test.ts index b084eaf90..3577587d1 100644 --- a/tests/unit/event_target_test.ts +++ b/tests/unit/event_target_test.ts @@ -1,5 +1,5 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -// deno-lint-ignore-file no-window-prefix + import { assertEquals, assertThrows } from "./test_util.ts"; Deno.test(function addEventListenerTest() { @@ -134,18 +134,18 @@ Deno.test(function eventTargetThisShouldDefaultToWindow() { }; addEventListener("hello", listener); - window.dispatchEvent(event); + globalThis.dispatchEvent(event); assertEquals(n, 2); n = 1; removeEventListener("hello", listener); - window.dispatchEvent(event); + globalThis.dispatchEvent(event); assertEquals(n, 1); - window.addEventListener("hello", listener); + globalThis.addEventListener("hello", listener); dispatchEvent(event); assertEquals(n, 2); n = 1; - window.removeEventListener("hello", listener); + globalThis.removeEventListener("hello", listener); dispatchEvent(event); assertEquals(n, 1); }); diff --git a/tests/unit/globals_test.ts b/tests/unit/globals_test.ts index 00be3f451..8e07cf005 100644 --- a/tests/unit/globals_test.ts +++ b/tests/unit/globals_test.ts @@ -1,5 +1,6 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -// deno-lint-ignore-file no-window-prefix + +// deno-lint-ignore-file no-window-prefix no-window import { assert, assertEquals, assertRejects } from "./test_util.ts"; Deno.test(function globalThisExists() { diff --git a/tests/unit/http_test.ts b/tests/unit/http_test.ts index f4fa62fa6..6968c6f88 100644 --- a/tests/unit/http_test.ts +++ b/tests/unit/http_test.ts @@ -1,4 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-deprecated-deno-api + import { Buffer, BufReader, BufWriter } from "@std/io/mod.ts"; import { TextProtoReader } from "../testdata/run/textproto.ts"; import { @@ -2094,7 +2097,6 @@ Deno.test({ "--header", "Accept-Encoding: deflate, gzip", ]; - // deno-lint-ignore no-deprecated-deno-api const proc = Deno.run({ cmd, stdout: "piped", stderr: "null" }); const status = await proc.status(); assert(status.success); @@ -2157,7 +2159,6 @@ Deno.test({ "--header", "Accept-Encoding: deflate, gzip", ]; - // deno-lint-ignore no-deprecated-deno-api const proc = Deno.run({ cmd, stdout: "piped", stderr: "null" }); const status = await proc.status(); assert(status.success); diff --git a/tests/unit/resources_test.ts b/tests/unit/resources_test.ts index bb0b9f2f8..921a8af8f 100644 --- a/tests/unit/resources_test.ts +++ b/tests/unit/resources_test.ts @@ -1,4 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-deprecated-deno-api + import { assert, assertEquals, assertThrows } from "./test_util.ts"; const listenPort = 4505; diff --git a/tests/unit/stat_test.ts b/tests/unit/stat_test.ts index 6882edf25..e64b47536 100644 --- a/tests/unit/stat_test.ts +++ b/tests/unit/stat_test.ts @@ -1,4 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-deprecated-deno-api + import { assert, assertEquals, diff --git a/tests/unit/tty_test.ts b/tests/unit/tty_test.ts index f135ae7cf..0c1140804 100644 --- a/tests/unit/tty_test.ts +++ b/tests/unit/tty_test.ts @@ -1,4 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-deprecated-deno-api + import { assert } from "./test_util.ts"; // Note tests for Deno.stdin.setRaw is in integration tests. diff --git a/tests/unit/utime_test.ts b/tests/unit/utime_test.ts index 9f5f25bee..49bc96623 100644 --- a/tests/unit/utime_test.ts +++ b/tests/unit/utime_test.ts @@ -1,4 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-deprecated-deno-api + import { assertEquals, assertRejects, |