summaryrefslogtreecommitdiff
path: root/js/read_link_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-01-17 23:39:06 -0500
committerGitHub <noreply@github.com>2019-01-17 23:39:06 -0500
commit315e4abd7e88c428e78c006ccf2dfdb499911a05 (patch)
treeb48136d6f0437374c5c0a9a8f717f7495b5ff808 /js/read_link_test.ts
parentd06c95637a2a19588fcb549ed7b760a916b3cbfd (diff)
mkdir should not be recursive by default (#1530)
It should return an error if a file with the given path exists and recursive isn't specified. Because mode is not used on windows and rarely used in unix, it is made to the last parameter. In collaboration with Stefan Dombrowski <sdo451@gmail.com>
Diffstat (limited to 'js/read_link_test.ts')
-rw-r--r--js/read_link_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/read_link_test.ts b/js/read_link_test.ts
index 583847654..bf27707c4 100644
--- a/js/read_link_test.ts
+++ b/js/read_link_test.ts
@@ -3,7 +3,7 @@ import { test, testPerm, assert, assertEqual } from "./test_util.ts";
import * as deno from "deno";
testPerm({ write: true }, function readlinkSyncSuccess() {
- const testDir = deno.makeTempDirSync() + "/test-readlink-sync";
+ const testDir = deno.makeTempDirSync();
const target = testDir + "/target";
const symlink = testDir + "/symln";
deno.mkdirSync(target);
@@ -30,7 +30,7 @@ test(function readlinkSyncNotFound() {
});
testPerm({ write: true }, async function readlinkSuccess() {
- const testDir = deno.makeTempDirSync() + "/test-readlink";
+ const testDir = deno.makeTempDirSync();
const target = testDir + "/target";
const symlink = testDir + "/symln";
deno.mkdirSync(target);