diff options
author | Dmitry Sharshakov <sh7dm@outlook.com> | 2019-02-08 23:59:38 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-08 15:59:38 -0500 |
commit | 9ab03389f047e5520c184b9fce4cd5fb2e4804bd (patch) | |
tree | c1b3295aa6788595e4b73d28aeba0b8fdc8f3205 /js/chmod_test.ts | |
parent | 3abaf9edb6877c328402b94fa0bcb6a9e0bbe86d (diff) |
Add --allow-read (#1689)
Co-authored-by: Greg Altman <g.s.altman@gmail.com>
Diffstat (limited to 'js/chmod_test.ts')
-rw-r--r-- | js/chmod_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/chmod_test.ts b/js/chmod_test.ts index ceee5b065..e3676b547 100644 --- a/js/chmod_test.ts +++ b/js/chmod_test.ts @@ -4,7 +4,7 @@ import * as deno from "deno"; const isNotWindows = deno.platform.os !== "win"; -testPerm({ write: true }, function chmodSyncSuccess() { +testPerm({ read: true, write: true }, function chmodSyncSuccess() { const enc = new TextEncoder(); const data = enc.encode("Hello"); const tempDir = deno.makeTempDirSync(); @@ -23,7 +23,7 @@ testPerm({ write: true }, function chmodSyncSuccess() { // Check symlink when not on windows if (isNotWindows) { - testPerm({ write: true }, function chmodSyncSymlinkSuccess() { + testPerm({ read: true, write: true }, function chmodSyncSymlinkSuccess() { const enc = new TextEncoder(); const data = enc.encode("Hello"); const tempDir = deno.makeTempDirSync(); @@ -69,7 +69,7 @@ testPerm({ write: false }, function chmodSyncPerm() { assertEqual(err.name, "PermissionDenied"); }); -testPerm({ write: true }, async function chmodSuccess() { +testPerm({ read: true, write: true }, async function chmodSuccess() { const enc = new TextEncoder(); const data = enc.encode("Hello"); const tempDir = deno.makeTempDirSync(); @@ -88,7 +88,7 @@ testPerm({ write: true }, async function chmodSuccess() { // Check symlink when not on windows if (isNotWindows) { - testPerm({ write: true }, async function chmodSymlinkSuccess() { + testPerm({ read: true, write: true }, async function chmodSymlinkSuccess() { const enc = new TextEncoder(); const data = enc.encode("Hello"); const tempDir = deno.makeTempDirSync(); |