diff options
Diffstat (limited to 'std/io/util_test.ts')
-rw-r--r-- | std/io/util_test.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/std/io/util_test.ts b/std/io/util_test.ts index 68a398bd1..d33a328d6 100644 --- a/std/io/util_test.ts +++ b/std/io/util_test.ts @@ -1,10 +1,9 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -const { remove, test } = Deno; import { assert, assertEquals } from "../testing/asserts.ts"; import * as path from "../path/mod.ts"; import { copyBytes, tempFile } from "./util.ts"; -test("[io/tuil] copyBytes", function (): void { +Deno.test("[io/tuil] copyBytes", function (): void { const dst = new Uint8Array(4); dst.fill(0); @@ -38,7 +37,7 @@ test("[io/tuil] copyBytes", function (): void { assertEquals(dst, Uint8Array.of(3, 4, 0, 0)); }); -test({ +Deno.test({ name: "[io/util] tempfile", fn: async function (): Promise<void> { const f = await tempFile(".", { @@ -48,6 +47,6 @@ test({ const base = path.basename(f.filepath); assert(!!base.match(/^prefix-.+?-postfix$/)); f.file.close(); - await remove(f.filepath); + await Deno.remove(f.filepath); }, }); |