From d418f792a97e66fb7a0b5c652869478c22e6cc12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 30 Mar 2023 15:47:39 +0200 Subject: test: fix test_check_origin_not_supported (#18504) Merge of dotland and dotcom caused this test to fail. --- cli/lsp/registries.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cli/lsp') 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")); -- cgit v1.2.3