diff options
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"; |