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/fs/copy_test.ts | |
parent | e0bcecee6042b219c6626172851af5a25362b948 (diff) |
refactor: rewrite tests in std/ to use Deno.test (#3930)
Diffstat (limited to 'std/fs/copy_test.ts')
-rw-r--r-- | std/fs/copy_test.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/std/fs/copy_test.ts b/std/fs/copy_test.ts index 8134eb1d8..fb8827f0c 100644 --- a/std/fs/copy_test.ts +++ b/std/fs/copy_test.ts @@ -1,5 +1,4 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { test } from "../testing/mod.ts"; import { assertEquals, assertThrows, @@ -22,7 +21,7 @@ async function testCopy( name: string, cb: (tempDir: string) => Promise<void> ): Promise<void> { - test({ + Deno.test({ name, async fn(): Promise<void> { const tempDir = await Deno.makeTempDir({ @@ -35,7 +34,7 @@ async function testCopy( } function testCopySync(name: string, cb: (tempDir: string) => void): void { - test({ + Deno.test({ name, fn: (): void => { const tempDir = Deno.makeTempDirSync({ |