summaryrefslogtreecommitdiff
path: root/std/signal/test.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-06-12 20:23:38 +0100
committerGitHub <noreply@github.com>2020-06-12 15:23:38 -0400
commit1fff6f55c3ba98a10018c6d374795e612061e9b6 (patch)
tree12074b6d44736b11513d857e437f9e30a6bf65a4 /std/signal/test.ts
parent26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff)
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/signal/test.ts')
-rw-r--r--std/signal/test.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/std/signal/test.ts b/std/signal/test.ts
index ef79a303b..4c8aa82e0 100644
--- a/std/signal/test.ts
+++ b/std/signal/test.ts
@@ -1,9 +1,8 @@
-const { test } = Deno;
import { assertEquals, assertThrows } from "../testing/asserts.ts";
import { delay } from "../async/delay.ts";
import { signal, onSignal } from "./mod.ts";
-test({
+Deno.test({
name: "signal() throws when called with empty signals",
ignore: Deno.build.os === "windows",
fn() {
@@ -18,7 +17,7 @@ test({
},
});
-test({
+Deno.test({
name: "signal() iterates for multiple signals",
ignore: Deno.build.os === "windows",
fn: async (): Promise<void> => {
@@ -59,7 +58,7 @@ test({
},
});
-test({
+Deno.test({
name: "onSignal() registers and disposes of event handler",
ignore: Deno.build.os === "windows",
async fn() {