From cde4dbb35132848ffece59ef9cfaccff32347124 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 14 Jul 2020 15:24:17 -0400 Subject: Use dprint for internal formatting (#6682) --- std/fs/write_json_test.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'std/fs/write_json_test.ts') diff --git a/std/fs/write_json_test.ts b/std/fs/write_json_test.ts index 45d27c4f1..c22bd7bf1 100644 --- a/std/fs/write_json_test.ts +++ b/std/fs/write_json_test.ts @@ -18,7 +18,7 @@ Deno.test("writeJsonIfNotExists", async function (): Promise { throw new Error("should write success"); }, Error, - "should write success" + "should write success", ); const content = await Deno.readFile(notExistsJsonFile); @@ -39,7 +39,7 @@ Deno.test("writeJsonIfExists", async function (): Promise { throw new Error("should write success"); }, Error, - "should write success" + "should write success", ); const content = await Deno.readFile(existsJsonFile); @@ -52,7 +52,7 @@ Deno.test("writeJsonIfExists", async function (): Promise { Deno.test("writeJsonIfExistsAnInvalidJson", async function (): Promise { const existsInvalidJsonFile = path.join( testdataDir, - "file_write_invalid.json" + "file_write_invalid.json", ); const invalidJsonContent = new TextEncoder().encode("[123}"); @@ -64,7 +64,7 @@ Deno.test("writeJsonIfExistsAnInvalidJson", async function (): Promise { throw new Error("should write success"); }, Error, - "should write success" + "should write success", ); const content = await Deno.readFile(existsInvalidJsonFile); @@ -86,7 +86,7 @@ Deno.test("writeJsonWithSpaces", async function (): Promise { throw new Error("should write success"); }, Error, - "should write success" + "should write success", ); const content = await Deno.readFile(existsJsonFile); @@ -109,12 +109,12 @@ Deno.test("writeJsonWithReplacer", async function (): Promise { { a: "1", b: "2", c: "3" }, { replacer: ["a"], - } + }, ); throw new Error("should write success"); }, Error, - "should write success" + "should write success", ); const content = await Deno.readFile(existsJsonFile); @@ -133,7 +133,7 @@ Deno.test("writeJsonSyncIfNotExists", function (): void { throw new Error("should write success"); }, Error, - "should write success" + "should write success", ); const content = Deno.readFileSync(notExistsJsonFile); @@ -154,7 +154,7 @@ Deno.test("writeJsonSyncIfExists", function (): void { throw new Error("should write success"); }, Error, - "should write success" + "should write success", ); const content = Deno.readFileSync(existsJsonFile); @@ -167,7 +167,7 @@ Deno.test("writeJsonSyncIfExists", function (): void { Deno.test("writeJsonSyncIfExistsAnInvalidJson", function (): void { const existsInvalidJsonFile = path.join( testdataDir, - "file_write_invalid_sync.json" + "file_write_invalid_sync.json", ); const invalidJsonContent = new TextEncoder().encode("[123}"); @@ -179,7 +179,7 @@ Deno.test("writeJsonSyncIfExistsAnInvalidJson", function (): void { throw new Error("should write success"); }, Error, - "should write success" + "should write success", ); const content = Deno.readFileSync(existsInvalidJsonFile); @@ -201,7 +201,7 @@ Deno.test("writeJsonWithSpaces", function (): void { throw new Error("should write success"); }, Error, - "should write success" + "should write success", ); const content = Deno.readFileSync(existsJsonFile); @@ -214,7 +214,7 @@ Deno.test("writeJsonWithSpaces", function (): void { Deno.test("writeJsonWithReplacer", function (): void { const existsJsonFile = path.join( testdataDir, - "file_write_replacer_sync.json" + "file_write_replacer_sync.json", ); const invalidJsonContent = new TextEncoder().encode(); @@ -227,12 +227,12 @@ Deno.test("writeJsonWithReplacer", function (): void { { a: "1", b: "2", c: "3" }, { replacer: ["a"], - } + }, ); throw new Error("should write success"); }, Error, - "should write success" + "should write success", ); const content = Deno.readFileSync(existsJsonFile); -- cgit v1.2.3