Skip to content

Commit f38b14c

Browse files
committed
add url test
1 parent 4683e34 commit f38b14c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test.ts

+12
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,15 @@ Deno.test("resolve imports with scopes", () => {
4343
assertEquals(resolve("b", importMap, "/scope2/scope3/foo.mjs"), "/b-3.mjs");
4444
assertEquals(resolve("c", importMap, "/scope2/scope3/foo.mjs"), "/c-1.mjs");
4545
});
46+
47+
Deno.test("resolve url", () => {
48+
const importMap = {
49+
imports: {
50+
"path/": "https://deno.land/std@0.65.0/path/",
51+
},
52+
};
53+
assertEquals(
54+
resolve("path/mod.ts", importMap),
55+
"https://deno.land/std@0.65.0/path/mod.ts",
56+
);
57+
});

0 commit comments

Comments
 (0)