diff options
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(); |