From 9ab03389f047e5520c184b9fce4cd5fb2e4804bd Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Fri, 8 Feb 2019 23:59:38 +0300 Subject: Add --allow-read (#1689) Co-authored-by: Greg Altman --- js/chmod_test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/chmod_test.ts') 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(); -- cgit v1.2.3