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/util | |
| parent | e0bcecee6042b219c6626172851af5a25362b948 (diff) | |
refactor: rewrite tests in std/ to use Deno.test (#3930)
Diffstat (limited to 'std/util')
| -rw-r--r-- | std/util/async_test.ts | 4 | ||||
| -rw-r--r-- | std/util/deep_assign_test.ts | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/std/util/async_test.ts b/std/util/async_test.ts index f51d00138..4607cf6cd 100644 --- a/std/util/async_test.ts +++ b/std/util/async_test.ts @@ -1,5 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { test, runIfMain } from "../testing/mod.ts"; +const { test } = Deno; import { assert, assertEquals, assertStrictEq } from "../testing/asserts.ts"; import { collectUint8Arrays, deferred, MuxAsyncIterator } from "./async.ts"; @@ -69,5 +69,3 @@ test(async function collectUint8Arrays4(): Promise<void> { assertStrictEq(result[i], i + 1); } }); - -runIfMain(import.meta); diff --git a/std/util/deep_assign_test.ts b/std/util/deep_assign_test.ts index bc66d2179..a69d30b73 100644 --- a/std/util/deep_assign_test.ts +++ b/std/util/deep_assign_test.ts @@ -1,5 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { test } from "../testing/mod.ts"; +const { test } = Deno; import { assertEquals, assert } from "../testing/asserts.ts"; import { deepAssign } from "./deep_assign.ts"; |
