From 61273085e40fb4d992eef4b1b5601e3567c80664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 11 Feb 2020 17:24:27 +0100 Subject: refactor: rewrite tests in std/ to use Deno.test (#3930) --- std/node/events_test.ts | 2 +- std/node/fs_test.ts | 2 +- std/node/module_test.ts | 2 +- std/node/os_test.ts | 2 +- std/node/process_test.ts | 2 +- std/node/util_test.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'std/node') diff --git a/std/node/events_test.ts b/std/node/events_test.ts index 0d8dd52e1..a2ed90112 100644 --- a/std/node/events_test.ts +++ b/std/node/events_test.ts @@ -1,4 +1,4 @@ -import { test } from "../testing/mod.ts"; +const { test } = Deno; import { assert, assertEquals, diff --git a/std/node/fs_test.ts b/std/node/fs_test.ts index c63891c44..9753d9520 100755 --- a/std/node/fs_test.ts +++ b/std/node/fs_test.ts @@ -1,5 +1,5 @@ +const { test } = Deno; import { readFile, readFileSync, readlink, readlinkSync } from "./fs.ts"; -import { test } from "../testing/mod.ts"; import * as path from "../path/mod.ts"; import { assertEquals, assert } from "../testing/asserts.ts"; diff --git a/std/node/module_test.ts b/std/node/module_test.ts index a869179dd..7415f1845 100644 --- a/std/node/module_test.ts +++ b/std/node/module_test.ts @@ -1,4 +1,4 @@ -import { test } from "../testing/mod.ts"; +const { test } = Deno; import { assertEquals, assert } from "../testing/asserts.ts"; import { createRequire } from "./module.ts"; diff --git a/std/node/os_test.ts b/std/node/os_test.ts index 65a9ef374..14d4e42ab 100644 --- a/std/node/os_test.ts +++ b/std/node/os_test.ts @@ -1,4 +1,4 @@ -import { test } from "../testing/mod.ts"; +const { test } = Deno; import { assert, assertThrows, diff --git a/std/node/process_test.ts b/std/node/process_test.ts index 0ddf71fbc..51dbcd630 100644 --- a/std/node/process_test.ts +++ b/std/node/process_test.ts @@ -1,4 +1,4 @@ -import { test } from "../testing/mod.ts"; +const { test } = Deno; import { assert, assertThrows, assertEquals } from "../testing/asserts.ts"; import { process } from "./process.ts"; diff --git a/std/node/util_test.ts b/std/node/util_test.ts index 45867f660..751dba57e 100644 --- a/std/node/util_test.ts +++ b/std/node/util_test.ts @@ -1,4 +1,4 @@ -import { test } from "../testing/mod.ts"; +const { test } = Deno; import { assert } from "../testing/asserts.ts"; import * as util from "./util.ts"; -- cgit v1.2.3