summaryrefslogtreecommitdiff
path: root/std/fs/write_file_str_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-28 12:33:09 +0200
committerGitHub <noreply@github.com>2020-04-28 12:33:09 +0200
commit8feb30e3258ed9690eb850e3ca22842b260a0403 (patch)
tree6805bfe3df675c2c7f6a379093061c6b73d8365a /std/fs/write_file_str_test.ts
parentb508e845671de9351c3f51755647371d76128d29 (diff)
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named function.
Diffstat (limited to 'std/fs/write_file_str_test.ts')
-rw-r--r--std/fs/write_file_str_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/fs/write_file_str_test.ts b/std/fs/write_file_str_test.ts
index 279afe3d1..42119c8fb 100644
--- a/std/fs/write_file_str_test.ts
+++ b/std/fs/write_file_str_test.ts
@@ -4,7 +4,7 @@ import { writeFileStr, writeFileStrSync } from "./write_file_str.ts";
const testdataDir = path.resolve("fs", "testdata");
-Deno.test(function testReadFileSync(): void {
+Deno.test("testReadFileSync", function (): void {
const jsonFile = path.join(testdataDir, "write_file_1.json");
const content = "write_file_str_test";
writeFileStrSync(jsonFile, content);
@@ -20,7 +20,7 @@ Deno.test(function testReadFileSync(): void {
assertEquals(content, result);
});
-Deno.test(async function testReadFile(): Promise<void> {
+Deno.test("testReadFile", async function (): Promise<void> {
const jsonFile = path.join(testdataDir, "write_file_2.json");
const content = "write_file_str_test";
await writeFileStr(jsonFile, content);