summaryrefslogtreecommitdiff
path: root/cli/lsp/registries.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lsp/registries.rs')
-rw-r--r--cli/lsp/registries.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/cli/lsp/registries.rs b/cli/lsp/registries.rs
index c1fa815e9..d5bdd22ca 100644
--- a/cli/lsp/registries.rs
+++ b/cli/lsp/registries.rs
@@ -1675,16 +1675,17 @@ mod tests {
let module_registry =
ModuleRegistry::new(&location, HttpClient::new(None, None).unwrap())
.unwrap();
- let result = module_registry.check_origin("https://deno.com").await;
+ let result = module_registry.check_origin("https://example.com").await;
assert!(result.is_err());
let err = result.unwrap_err().to_string();
- assert!(err
- .contains("https://deno.com/.well-known/deno-import-intellisense.json"));
+ assert!(err.contains(
+ "https://example.com/.well-known/deno-import-intellisense.json"
+ ));
// because we are caching an empty file when we hit an error with import
// detection when fetching the config file, we should have an error now that
// indicates trying to parse an empty file.
- let result = module_registry.check_origin("https://deno.com").await;
+ let result = module_registry.check_origin("https://example.com").await;
assert!(result.is_err());
let err = result.unwrap_err().to_string();
assert!(err.contains("EOF while parsing a value at line 1 column 0"));