mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named function.
This commit is contained in:
parent
b508e84567
commit
8feb30e325
69 changed files with 446 additions and 471 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue