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/textproto | |
parent | e0bcecee6042b219c6626172851af5a25362b948 (diff) |
refactor: rewrite tests in std/ to use Deno.test (#3930)
Diffstat (limited to 'std/textproto')
-rw-r--r-- | std/textproto/reader_test.ts | 4 | ||||
-rw-r--r-- | std/textproto/test.ts | 2 |
2 files changed, 2 insertions, 4 deletions
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<T extends {}>(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<void> { const enc = new TextEncoder(); |