1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix(cli/tools/test_runner): --doc should not require permissions (#10719)

This commit is contained in:
Casper Beyer 2021-05-20 21:02:39 +08:00 committed by GitHub
parent 014d8d51c0
commit c9db09630d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -24,7 +24,6 @@ use tokio::task::LocalSet;
fn typecheck_declarations_ns() {
let status = util::deno_cmd()
.arg("test")
.arg("--allow-all")
.arg("--doc")
.arg(util::root_path().join("cli/dts/lib.deno.ns.d.ts"))
.spawn()
@ -41,7 +40,6 @@ fn typecheck_declarations_unstable() {
let status = util::deno_cmd()
.arg("test")
.arg("--doc")
.arg("--allow-all")
.arg("--unstable")
.arg(util::root_path().join("cli/dts/lib.deno.unstable.d.ts"))
.spawn()

View file

@ -338,9 +338,10 @@ pub async fn run_tests(
let lines_regex = Regex::new(r"(?:\* ?)(?:\# ?)?(.*)")?;
for specifier in &doc_modules {
let mut fetch_permissions = Permissions::allow_all();
let file = program_state
.file_fetcher
.fetch(&specifier, &mut permissions.clone())
.fetch(&specifier, &mut fetch_permissions)
.await?;
let parsed_module =