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

fix(cli/tools/test_runner): use file_fetcher.fetch to get sources (#10708)

This commit is contained in:
Casper Beyer 2021-05-19 22:45:00 +08:00 committed by Bert Belder
parent 2e9bd3e295
commit 8a512b99c9
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -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)?;