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/truncate_test.ts | |
parent | 3abaf9edb6877c328402b94fa0bcb6a9e0bbe86d (diff) |
Add --allow-read (#1689)
Co-authored-by: Greg Altman <g.s.altman@gmail.com>
Diffstat (limited to 'js/truncate_test.ts')
-rw-r--r-- | js/truncate_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<string> { 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"; |