diff options
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 ); |