summaryrefslogtreecommitdiff
path: root/cli/tests/unit/read_link_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/read_link_test.ts')
-rw-r--r--cli/tests/unit/read_link_test.ts20
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<