mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
fix(cli/tools/test_runner): use file_fetcher.fetch to get sources (#10708)
This commit is contained in:
parent
42f76670fc
commit
3ec32a0a1c
1 changed files with 4 additions and 1 deletions
|
@ -346,7 +346,10 @@ pub async fn run_tests(
|
|||
let lines_regex = Regex::new(r"(?:\* ?)(?:\# ?)?(.*)")?;
|
||||
|
||||
for specifier in &doc_modules {
|
||||
let file = program_state.file_fetcher.get_source(&specifier).unwrap();
|
||||
let file = program_state
|
||||
.file_fetcher
|
||||
.fetch(&specifier, &mut permissions.clone())
|
||||
.await?;
|
||||
|
||||
let parsed_module =
|
||||
ast::parse(&file.specifier.as_str(), &file.source, &file.media_type)?;
|
||||
|
|
Loading…
Reference in a new issue