summaryrefslogtreecommitdiff
path: root/js/os_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/os_test.ts')
-rw-r--r--js/os_test.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/js/os_test.ts b/js/os_test.ts
index 544d7d49f..df88b5085 100644
--- a/js/os_test.ts
+++ b/js/os_test.ts
@@ -152,25 +152,6 @@ test(function makeTempDirSyncPerm() {
assertEqual(err.name, "PermissionDenied");
});
-testPerm({ write: true }, function mkdirSync() {
- const path = deno.makeTempDirSync() + "/dir/subdir";
- deno.mkdirSync(path);
- const pathInfo = deno.statSync(path);
- assert(pathInfo.isDirectory());
-});
-
-testPerm({ write: false }, function mkdDirSyncPerm() {
- let err;
- try {
- const path = "/baddir";
- deno.mkdirSync(path);
- } catch (err_) {
- err = err_;
- }
- assertEqual(err.kind, deno.ErrorKind.PermissionDenied);
- assertEqual(err.name, "PermissionDenied");
-});
-
testPerm({ write: true }, function renameSync() {
const testDir = deno.makeTempDirSync() + "/test-rename";
const oldpath = testDir + "/oldpath";