summaryrefslogtreecommitdiff
path: root/cli/lsp/registries.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-30 15:47:39 +0200
committerGitHub <noreply@github.com>2023-03-30 19:17:39 +0530
commitd418f792a97e66fb7a0b5c652869478c22e6cc12 (patch)
tree171eb031f3def9533330109405e2e0e1afc6c404 /cli/lsp/registries.rs
parent913e2875c1c31d5ffbc9c0c9ed0e8c63f6143024 (diff)
test: fix test_check_origin_not_supported (#18504)
Merge of dotland and dotcom caused this test to fail.
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"));