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:
parent
014d8d51c0
commit
c9db09630d
2 changed files with 2 additions and 3 deletions
|
@ -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()
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue