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/symlink_test.ts | |
parent | 3abaf9edb6877c328402b94fa0bcb6a9e0bbe86d (diff) |
Add --allow-read (#1689)
Co-authored-by: Greg Altman <g.s.altman@gmail.com>
Diffstat (limited to 'js/symlink_test.ts')
-rw-r--r-- | js/symlink_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/symlink_test.ts b/js/symlink_test.ts index b552499f4..ab8463878 100644 --- a/js/symlink_test.ts +++ b/js/symlink_test.ts @@ -1,8 +1,8 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import { testPerm, assert, assertEqual } from "./test_util.ts"; +import { test, testPerm, assert, assertEqual } from "./test_util.ts"; import * as deno from "deno"; -testPerm({ write: true }, function symlinkSyncSuccess() { +testPerm({ read: true, write: true }, function symlinkSyncSuccess() { const testDir = deno.makeTempDirSync(); const oldname = testDir + "/oldname"; const newname = testDir + "/newname"; @@ -25,7 +25,7 @@ testPerm({ write: true }, function symlinkSyncSuccess() { } }); -testPerm({ write: false }, function symlinkSyncPerm() { +test(function symlinkSyncPerm() { let err; try { deno.symlinkSync("oldbaddir", "newbaddir"); @@ -47,7 +47,7 @@ testPerm({ write: true }, function symlinkSyncNotImplemented() { assertEqual(err.message, "Not implemented"); }); -testPerm({ write: true }, async function symlinkSuccess() { +testPerm({ read: true, write: true }, async function symlinkSuccess() { const testDir = deno.makeTempDirSync(); const oldname = testDir + "/oldname"; const newname = testDir + "/newname"; |