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/truncate_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/truncate_test.ts') diff --git a/js/truncate_test.ts b/js/truncate_test.ts index c0e1b163b..2556dc76a 100644 --- a/js/truncate_test.ts +++ b/js/truncate_test.ts @@ -16,7 +16,7 @@ async function readData(name: string): Promise { return text; } -testPerm({ write: true }, function truncateSyncSuccess() { +testPerm({ read: true, write: true }, function truncateSyncSuccess() { const enc = new TextEncoder(); const d = enc.encode("Hello"); const filename = deno.makeTempDirSync() + "/test_truncateSync.txt"; @@ -33,7 +33,7 @@ testPerm({ write: true }, function truncateSyncSuccess() { deno.removeSync(filename); }); -testPerm({ write: true }, async function truncateSuccess() { +testPerm({ read: true, write: true }, async function truncateSuccess() { const enc = new TextEncoder(); const d = enc.encode("Hello"); const filename = deno.makeTempDirSync() + "/test_truncate.txt"; -- cgit v1.2.3