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

fix: regression remapping remote specifier to local file (#17935)

Tests added to deno_graph, which were previously not there.

Closes #17932
This commit is contained in:
David Sherret 2023-02-24 20:23:51 -05:00 committed by GitHub
parent 033b70af19
commit d6192ce8fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

4
Cargo.lock generated
View file

@ -1093,9 +1093,9 @@ dependencies = [
[[package]]
name = "deno_graph"
version = "0.44.1"
version = "0.44.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75a9fd8abbf9fd7e79762232611c188762b495919e1e8920bfd3d74b323edae3"
checksum = "1a2cb8c414852294d5fb23d265725bbf1fab9608296e04301440dba14fef71e5"
dependencies = [
"anyhow",
"data-url",

View file

@ -46,7 +46,7 @@ deno_ast = { workspace = true, features = ["bundler", "cjs", "codegen", "dep_gra
deno_core = { workspace = true, features = ["include_js_files_for_snapshotting"] }
deno_doc = "0.57.0"
deno_emit = "0.16.0"
deno_graph = "0.44.1"
deno_graph = "=0.44.2"
deno_lint = { version = "0.40.0", features = ["docs"] }
deno_lockfile.workspace = true
deno_runtime = { workspace = true, features = ["dont_create_runtime_snapshot", "include_js_files_for_snapshotting"] }

View file

@ -442,6 +442,7 @@ mod test {
specifier: input.to_string(),
range: Range {
specifier,
text: "".to_string(),
start: Position::zeroed(),
end: Position::zeroed(),
},
@ -458,6 +459,7 @@ mod test {
let err = ResolutionError::InvalidSpecifier {
range: Range {
specifier,
text: "".to_string(),
start: Position::zeroed(),
end: Position::zeroed(),
},

View file

@ -681,6 +681,7 @@ mod tests {
&text_info,
&Range {
specifier: ModuleSpecifier::parse("https://deno.land").unwrap(),
text: "".to_string(),
start: deno_graph::Position {
line: 0,
character: 0,
@ -705,6 +706,7 @@ mod tests {
&text_info,
&Range {
specifier: ModuleSpecifier::parse("https://deno.land").unwrap(),
text: "".to_string(),
start: deno_graph::Position {
line: 0,
character: 0,