Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit b1f5564

Browse files
committed
chore(compiler): update testing
1 parent 2ccc937 commit b1f5564

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

compiler/src/import_map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ mod tests {
9696
imports.insert("react-dom/".into(), "https://esm.sh/react-dom/".into());
9797
imports.insert(
9898
"https://deno.land/x/aleph/".into(),
99-
"http://localhost:9006/".into(),
99+
"http://localhost:2020/".into(),
100100
);
101101
scope_imports.insert("react".into(), "https://esm.sh/[email protected]".into());
102102
scopes.insert("/scope/".into(), scope_imports);
@@ -107,7 +107,7 @@ mod tests {
107107
);
108108
assert_eq!(
109109
import_map.resolve("./app.tsx", "https://deno.land/x/aleph/mod.ts"),
110-
"http://localhost:9006/mod.ts"
110+
"http://localhost:2020/mod.ts"
111111
);
112112
assert_eq!(
113113
import_map.resolve("./renderer.ts", "react-dom/server"),

compiler/src/resolve.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ mod tests {
847847
imports.insert("react-dom/".into(), "https://esm.sh/react-dom/".into());
848848
imports.insert(
849849
"https://deno.land/x/aleph/".into(),
850-
"http://localhost:9006/".into(),
850+
"http://localhost:2020/".into(),
851851
);
852852
let mut resolver = Resolver::new(
853853
"/pages/index.tsx",
@@ -880,8 +880,8 @@ mod tests {
880880
None
881881
),
882882
(
883-
"../-/http_localhost_9006/framework/react/link.js".into(),
884-
"http://localhost:9006/framework/react/link.ts".into()
883+
"../-/http_localhost_2020/framework/react/link.js".into(),
884+
"http://localhost:2020/framework/react/link.ts".into()
885885
)
886886
);
887887
assert_eq!(
@@ -936,8 +936,8 @@ mod tests {
936936
assert_eq!(
937937
resolver.resolve("https://deno.land/x/aleph/mod.ts", false, None),
938938
(
939-
"../-/http_localhost_9006/mod.js".into(),
940-
"http://localhost:9006/mod.ts".into()
939+
"../-/http_localhost_2020/mod.js".into(),
940+
"http://localhost:2020/mod.ts".into()
941941
)
942942
);
943943
assert_eq!(

0 commit comments

Comments
 (0)