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/textproto/reader_test.ts | 4 +--- std/textproto/test.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'std/textproto') diff --git a/std/textproto/reader_test.ts b/std/textproto/reader_test.ts index fe842e0e2..8f4b07242 100644 --- a/std/textproto/reader_test.ts +++ b/std/textproto/reader_test.ts @@ -12,7 +12,7 @@ import { assertNotEquals, assertThrows } from "../testing/asserts.ts"; -import { test, runIfMain } from "../testing/mod.ts"; +const { test } = Deno; function assertNotEOF(val: T | Deno.EOF): T { assertNotEquals(val, Deno.EOF); @@ -180,5 +180,3 @@ test({ assertEquals(m.get("Content-Disposition"), 'form-data; name="test"'); } }); - -runIfMain(import.meta); diff --git a/std/textproto/test.ts b/std/textproto/test.ts index bdb929369..5b67bbf95 100644 --- a/std/textproto/test.ts +++ b/std/textproto/test.ts @@ -5,7 +5,7 @@ import { append } from "./mod.ts"; import { assertEquals } from "../testing/asserts.ts"; -import { test } from "../testing/mod.ts"; +const { test } = Deno; test(async function textprotoAppend(): Promise { const enc = new TextEncoder(); -- cgit v1.2.3