diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-11 17:24:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 17:24:27 +0100 |
commit | 61273085e40fb4d992eef4b1b5601e3567c80664 (patch) | |
tree | 1ac0f401d4cb897bdb6f88e3a5c47fece2856f89 /std/node | |
parent | e0bcecee6042b219c6626172851af5a25362b948 (diff) |
refactor: rewrite tests in std/ to use Deno.test (#3930)
Diffstat (limited to 'std/node')
-rw-r--r-- | std/node/events_test.ts | 2 | ||||
-rwxr-xr-x | std/node/fs_test.ts | 2 | ||||
-rw-r--r-- | std/node/module_test.ts | 2 | ||||
-rw-r--r-- | std/node/os_test.ts | 2 | ||||
-rw-r--r-- | std/node/process_test.ts | 2 | ||||
-rw-r--r-- | std/node/util_test.ts | 2 |
6 files changed, 6 insertions, 6 deletions
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"; |