summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-04-24 20:34:33 -0400
committerGitHub <noreply@github.com>2019-04-24 20:34:33 -0400
commitf6948235079b1d6050a2d3c98891844cb97595f5 (patch)
tree16728e78d64a91843e3dfef1a8fc327a4e43140a /js
parent6bece270b2719a66b564a411fc28c3b32ae0b105 (diff)
Fix symlinkSyncNotImplemented (#2198)
Diffstat (limited to 'js')
-rw-r--r--js/symlink_test.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/symlink_test.ts b/js/symlink_test.ts
index 2ce666949..10d4fe738 100644
--- a/js/symlink_test.ts
+++ b/js/symlink_test.ts
@@ -39,9 +39,12 @@ test(function symlinkSyncPerm(): void {
// Just for now, until we implement symlink for Windows.
// Symlink with type should succeed on other platforms with type ignored
testPerm({ write: true }, function symlinkSyncNotImplemented(): void {
+ const testDir = Deno.makeTempDirSync();
+ const oldname = testDir + "/oldname";
+ const newname = testDir + "/newname";
let err;
try {
- Deno.symlinkSync("oldname", "newname", "dir");
+ Deno.symlinkSync(oldname, newname, "dir");
} catch (e) {
err = e;
}