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/ensure_link_test.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'std/fs/ensure_link_test.ts')
-rw-r--r-- | std/fs/ensure_link_test.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/std/fs/ensure_link_test.ts b/std/fs/ensure_link_test.ts index e05d3a648..d4f2f30c2 100644 --- a/std/fs/ensure_link_test.ts +++ b/std/fs/ensure_link_test.ts @@ -19,7 +19,7 @@ Deno.test("ensureLinkIfItNotExist", async function (): Promise<void> { await assertThrowsAsync( async (): Promise<void> => { await ensureLink(testFile, linkFile); - } + }, ); await Deno.remove(destDir, { recursive: true }); @@ -59,10 +59,10 @@ Deno.test("ensureLinkIfItExist", async function (): Promise<void> { await Deno.writeFile(testFile, new TextEncoder().encode("123")); const testFileContent1 = new TextDecoder().decode( - await Deno.readFile(testFile) + await Deno.readFile(testFile), ); const linkFileContent1 = new TextDecoder().decode( - await Deno.readFile(testFile) + await Deno.readFile(testFile), ); assertEquals(testFileContent1, "123"); @@ -72,10 +72,10 @@ Deno.test("ensureLinkIfItExist", async function (): Promise<void> { await Deno.writeFile(testFile, new TextEncoder().encode("abc")); const testFileContent2 = new TextDecoder().decode( - await Deno.readFile(testFile) + await Deno.readFile(testFile), ); const linkFileContent2 = new TextDecoder().decode( - await Deno.readFile(testFile) + await Deno.readFile(testFile), ); assertEquals(testFileContent2, "abc"); @@ -107,10 +107,10 @@ Deno.test("ensureLinkSyncIfItExist", function (): void { Deno.writeFileSync(testFile, new TextEncoder().encode("123")); const testFileContent1 = new TextDecoder().decode( - Deno.readFileSync(testFile) + Deno.readFileSync(testFile), ); const linkFileContent1 = new TextDecoder().decode( - Deno.readFileSync(testFile) + Deno.readFileSync(testFile), ); assertEquals(testFileContent1, "123"); @@ -120,10 +120,10 @@ Deno.test("ensureLinkSyncIfItExist", function (): void { Deno.writeFileSync(testFile, new TextEncoder().encode("abc")); const testFileContent2 = new TextDecoder().decode( - Deno.readFileSync(testFile) + Deno.readFileSync(testFile), ); const linkFileContent2 = new TextDecoder().decode( - Deno.readFileSync(testFile) + Deno.readFileSync(testFile), ); assertEquals(testFileContent2, "abc"); @@ -143,7 +143,7 @@ Deno.test("ensureLinkDirectoryIfItExist", async function (): Promise<void> { await assertThrowsAsync( async (): Promise<void> => { await ensureLink(testDir, linkDir); - } + }, // "Operation not permitted (os error 1)" // throw an local matching test // "Access is denied. (os error 5)" // throw in CI ); @@ -162,7 +162,7 @@ Deno.test("ensureLinkSyncDirectoryIfItExist", function (): void { assertThrows( (): void => { ensureLinkSync(testDir, linkDir); - } + }, // "Operation not permitted (os error 1)" // throw an local matching test // "Access is denied. (os error 5)" // throw in CI ); |