diff options
Diffstat (limited to 'cli/file_fetcher.rs')
-rw-r--r-- | cli/file_fetcher.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs index 044707cff..3e3776f24 100644 --- a/cli/file_fetcher.rs +++ b/cli/file_fetcher.rs @@ -1551,7 +1551,8 @@ mod tests { None, ) .unwrap(); - let specifier = resolve_url("http://localhost:4545/002_hello.ts").unwrap(); + let specifier = + resolve_url("http://localhost:4545/run/002_hello.ts").unwrap(); let result = file_fetcher .fetch(&specifier, &mut Permissions::allow_all()) @@ -1559,7 +1560,7 @@ mod tests { assert!(result.is_err()); let err = result.unwrap_err(); assert_eq!(get_custom_error_class(&err), Some("NoRemote")); - assert_eq!(err.to_string(), "A remote specifier was requested: \"http://localhost:4545/002_hello.ts\", but --no-remote is specified."); + assert_eq!(err.to_string(), "A remote specifier was requested: \"http://localhost:4545/run/002_hello.ts\", but --no-remote is specified."); } #[tokio::test] @@ -1587,7 +1588,8 @@ mod tests { None, ) .unwrap(); - let specifier = resolve_url("http://localhost:4545/002_hello.ts").unwrap(); + let specifier = + resolve_url("http://localhost:4545/run/002_hello.ts").unwrap(); let result = file_fetcher_01 .fetch(&specifier, &mut Permissions::allow_all()) @@ -1595,7 +1597,7 @@ mod tests { assert!(result.is_err()); let err = result.unwrap_err(); assert_eq!(get_custom_error_class(&err), Some("NotCached")); - assert_eq!(err.to_string(), "Specifier not found in cache: \"http://localhost:4545/002_hello.ts\", --cached-only is specified."); + assert_eq!(err.to_string(), "Specifier not found in cache: \"http://localhost:4545/run/002_hello.ts\", --cached-only is specified."); let result = file_fetcher_02 .fetch(&specifier, &mut Permissions::allow_all()) |