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/util/async_test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'std/util/async_test.ts') 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 { assertStrictEq(result[i], i + 1); } }); - -runIfMain(import.meta); -- cgit v1.2.3