diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-28 12:33:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 12:33:09 +0200 |
commit | 8feb30e3258ed9690eb850e3ca22842b260a0403 (patch) | |
tree | 6805bfe3df675c2c7f6a379093061c6b73d8365a /std/fs/empty_dir_test.ts | |
parent | b508e845671de9351c3f51755647371d76128d29 (diff) |
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named
function.
Diffstat (limited to 'std/fs/empty_dir_test.ts')
-rw-r--r-- | std/fs/empty_dir_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/std/fs/empty_dir_test.ts b/std/fs/empty_dir_test.ts index 59b12fbc9..b3be1f617 100644 --- a/std/fs/empty_dir_test.ts +++ b/std/fs/empty_dir_test.ts @@ -11,7 +11,7 @@ import { emptyDir, emptyDirSync } from "./empty_dir.ts"; const testdataDir = path.resolve("fs", "testdata"); -Deno.test(async function emptyDirIfItNotExist(): Promise<void> { +Deno.test("emptyDirIfItNotExist", async function (): Promise<void> { const testDir = path.join(testdataDir, "empty_dir_test_1"); const testNestDir = path.join(testDir, "nest"); // empty a dir which not exist. then it will create new one @@ -27,7 +27,7 @@ Deno.test(async function emptyDirIfItNotExist(): Promise<void> { } }); -Deno.test(function emptyDirSyncIfItNotExist(): void { +Deno.test("emptyDirSyncIfItNotExist", function (): void { const testDir = path.join(testdataDir, "empty_dir_test_2"); const testNestDir = path.join(testDir, "nest"); // empty a dir which not exist. then it will create new one @@ -43,7 +43,7 @@ Deno.test(function emptyDirSyncIfItNotExist(): void { } }); -Deno.test(async function emptyDirIfItExist(): Promise<void> { +Deno.test("emptyDirIfItExist", async function (): Promise<void> { const testDir = path.join(testdataDir, "empty_dir_test_3"); const testNestDir = path.join(testDir, "nest"); // create test dir @@ -86,7 +86,7 @@ Deno.test(async function emptyDirIfItExist(): Promise<void> { } }); -Deno.test(function emptyDirSyncIfItExist(): void { +Deno.test("emptyDirSyncIfItExist", function (): void { const testDir = path.join(testdataDir, "empty_dir_test_4"); const testNestDir = path.join(testDir, "nest"); // create test dir |