stabilize Deno.cwd and require --allow-read (#5068)

This commit is contained in:
Ryan Dahl 2020-05-04 14:23:06 -04:00 committed by GitHub
parent 191c59a591
commit 6c02b061ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 23 additions and 59 deletions

View file

@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { unitTest, assert, assertEquals } from "./test_util.ts";
unitTest(function dirCwdNotNull(): void {
unitTest({ perms: { read: true } }, function dirCwdNotNull(): void {
assert(Deno.cwd() != null);
});