mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
fix(cli/tools/test_runner): use file_fetcher.fetch to get sources (#10708)
This commit is contained in:
parent
2e9bd3e295
commit
8a512b99c9
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