We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4683e34 commit f38b14cCopy full SHA for f38b14c
test.ts
@@ -43,3 +43,15 @@ Deno.test("resolve imports with scopes", () => {
43
assertEquals(resolve("b", importMap, "/scope2/scope3/foo.mjs"), "/b-3.mjs");
44
assertEquals(resolve("c", importMap, "/scope2/scope3/foo.mjs"), "/c-1.mjs");
45
});
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