From 8feb30e3258ed9690eb850e3ca22842b260a0403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 28 Apr 2020 12:33:09 +0200 Subject: BREAKING: remove overload of Deno.test() (#4951) This commit removes overload of Deno.test() that accepted named function. --- std/fs/empty_dir_test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'std/fs/empty_dir_test.ts') 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 { +Deno.test("emptyDirIfItNotExist", async function (): Promise { 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 { } }); -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 { +Deno.test("emptyDirIfItExist", async function (): Promise { 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 { } }); -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 -- cgit v1.2.3