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 /cli/tests/unit/read_link_test.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/tests/unit/read_link_test.ts')
-rw-r--r-- | cli/tests/unit/read_link_test.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cli/tests/unit/read_link_test.ts b/cli/tests/unit/read_link_test.ts index 597541914..a4baeb792 100644 --- a/cli/tests/unit/read_link_test.ts +++ b/cli/tests/unit/read_link_test.ts @@ -10,15 +10,15 @@ unitTest( { perms: { write: true, read: true } }, function readLinkSyncSuccess(): void { const testDir = Deno.makeTempDirSync(); - const target = - testDir + (Deno.build.os == "windows" ? "\\target" : "/target"); - const symlink = - testDir + (Deno.build.os == "windows" ? "\\symlink" : "/symlink"); + const target = testDir + + (Deno.build.os == "windows" ? "\\target" : "/target"); + const symlink = testDir + + (Deno.build.os == "windows" ? "\\symlink" : "/symlink"); Deno.mkdirSync(target); Deno.symlinkSync(target, symlink); const targetPath = Deno.readLinkSync(symlink); assertEquals(targetPath, target); - } + }, ); unitTest({ perms: { read: false } }, function readLinkSyncPerm(): void { @@ -37,15 +37,15 @@ unitTest( { perms: { write: true, read: true } }, async function readLinkSuccess(): Promise<void> { const testDir = Deno.makeTempDirSync(); - const target = - testDir + (Deno.build.os == "windows" ? "\\target" : "/target"); - const symlink = - testDir + (Deno.build.os == "windows" ? "\\symlink" : "/symlink"); + const target = testDir + + (Deno.build.os == "windows" ? "\\target" : "/target"); + const symlink = testDir + + (Deno.build.os == "windows" ? "\\symlink" : "/symlink"); Deno.mkdirSync(target); Deno.symlinkSync(target, symlink); const targetPath = await Deno.readLink(symlink); assertEquals(targetPath, target); - } + }, ); unitTest({ perms: { read: false } }, async function readLinkPerm(): Promise< |