mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
Add --allow-read (#1689)
Co-authored-by: Greg Altman <g.s.altman@gmail.com>
This commit is contained in:
parent
3abaf9edb6
commit
9ab03389f0
25 changed files with 395 additions and 118 deletions
|
@ -26,7 +26,7 @@ testPerm({ net: true }, async function resourcesNet() {
|
|||
listener.close();
|
||||
});
|
||||
|
||||
test(async function resourcesFile() {
|
||||
testPerm({ read: true }, async function resourcesFile() {
|
||||
const resourcesBefore = deno.resources();
|
||||
await deno.open("tests/hello.txt");
|
||||
const resourcesAfter = deno.resources();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue