Skip to content

Commit

Permalink
Fix symlinkSyncNotImplemented (denoland#2198)
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Apr 25, 2019
1 parent 6bece27 commit f694823
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/symlink_test.ts
Expand Up @@ -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;
}
Expand Down

0 comments on commit f694823

Please sign in to comment.