diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-07-14 15:24:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 15:24:17 -0400 |
commit | cde4dbb35132848ffece59ef9cfaccff32347124 (patch) | |
tree | cc7830968c6decde704c8cfb83c9185193dc698f /std/fs/move_test.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'std/fs/move_test.ts')
-rw-r--r-- | std/fs/move_test.ts | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/std/fs/move_test.ts b/std/fs/move_test.ts index fdf451125..73a96ce46 100644 --- a/std/fs/move_test.ts +++ b/std/fs/move_test.ts @@ -19,7 +19,7 @@ Deno.test("moveDirectoryIfSrcNotExists", async function (): Promise<void> { await assertThrowsAsync( async (): Promise<void> => { await move(srcDir, destDir); - } + }, ); }); @@ -36,7 +36,7 @@ Deno.test("moveDirectoryIfDestNotExists", async function (): Promise<void> { throw new Error("should not throw error"); }, Error, - "should not throw error" + "should not throw error", ); await Deno.remove(destDir); @@ -57,11 +57,11 @@ Deno.test( throw new Error("should not throw error"); }, Error, - "should not throw error" + "should not throw error", ); await Deno.remove(destDir); - } + }, ); Deno.test("moveFileIfSrcNotExists", async function (): Promise<void> { @@ -72,7 +72,7 @@ Deno.test("moveFileIfSrcNotExists", async function (): Promise<void> { await assertThrowsAsync( async (): Promise<void> => { await move(srcFile, destFile); - } + }, ); }); @@ -103,7 +103,7 @@ Deno.test("moveFileIfDestExists", async function (): Promise<void> { await move(srcFile, destFile); }, Error, - "dest already exists" + "dest already exists", ); // move again with overwrite @@ -113,7 +113,7 @@ Deno.test("moveFileIfDestExists", async function (): Promise<void> { throw new Error("should not throw error"); }, Error, - "should not throw error" + "should not throw error", ); assertEquals(await exists(srcFile), false); @@ -144,7 +144,7 @@ Deno.test("moveDirectory", async function (): Promise<void> { assertEquals(await exists(destFile), true); const destFileContent = new TextDecoder().decode( - await Deno.readFile(destFile) + await Deno.readFile(destFile), ); assertEquals(destFileContent, "src"); @@ -179,12 +179,12 @@ Deno.test( assertEquals(await exists(destFile), true); const destFileContent = new TextDecoder().decode( - await Deno.readFile(destFile) + await Deno.readFile(destFile), ); assertEquals(destFileContent, "src"); await Deno.remove(destDir, { recursive: true }); - } + }, ); Deno.test("moveIntoSubDir", async function (): Promise<void> { @@ -198,7 +198,7 @@ Deno.test("moveIntoSubDir", async function (): Promise<void> { await move(srcDir, destDir); }, Error, - `Cannot move '${srcDir}' to a subdirectory of itself, '${destDir}'.` + `Cannot move '${srcDir}' to a subdirectory of itself, '${destDir}'.`, ); await Deno.remove(srcDir, { recursive: true }); }); @@ -225,7 +225,7 @@ Deno.test("moveSyncDirectoryIfDestNotExists", function (): void { throw new Error("should not throw error"); }, Error, - "should not throw error" + "should not throw error", ); Deno.removeSync(destDir); @@ -244,7 +244,7 @@ Deno.test("moveSyncDirectoryIfDestNotExistsAndOverwrite", function (): void { throw new Error("should not throw error"); }, Error, - "should not throw error" + "should not throw error", ); Deno.removeSync(destDir); @@ -286,7 +286,7 @@ Deno.test("moveSyncFileIfDestExists", function (): void { moveSync(srcFile, destFile); }, Error, - "dest already exists" + "dest already exists", ); // move again with overwrite @@ -296,7 +296,7 @@ Deno.test("moveSyncFileIfDestExists", function (): void { throw new Error("should not throw error"); }, Error, - "should not throw error" + "should not throw error", ); assertEquals(existsSync(srcFile), false); @@ -368,7 +368,7 @@ Deno.test("moveSyncIntoSubDir", function (): void { moveSync(srcDir, destDir); }, Error, - `Cannot move '${srcDir}' to a subdirectory of itself, '${destDir}'.` + `Cannot move '${srcDir}' to a subdirectory of itself, '${destDir}'.`, ); Deno.removeSync(srcDir, { recursive: true }); }); |