Source code
Revision control
Copy as Markdown
Other Tools
{
"importMap": {
"imports": {
"package/withslash": "/node_modules/package-with-slash/index.mjs",
"not-a-package": "/lib/not-a-package.mjs",
"only-slash/": "/lib/only-slash/",
".": "/lib/dot.mjs",
"..": "/lib/dotdot.mjs",
"..\\": "/lib/dotdotbackslash.mjs",
"%2E": "/lib/percent2e.mjs",
"%2F": "/lib/percent2f.mjs",
"%E3%81%8D%E3%81%A4%E3%81%AD/": "/c/",
"きつね/fox/": "/d/"
}
},
"name": "Tricky specifiers",
"tests": {
"explicitly-mapped specifiers that happen to have a slash": {
"expectedResults": {
}
},
"specifier with punctuation": {
"expectedResults": {
}
},
"submodule of something not declared with a trailing slash should fail": {
"expectedResults": {
"not-a-package/foo": null
}
},
"module for which only a trailing-slash version is present should fail": {
"expectedResults": {
"only-slash": null
}
},
"URL-like specifiers are normalized": {
"expectedResults": {
}
},
"Bare specifiers are not normalized": {
"expectedResults": {
"きつね/": null,
"きつね/bar": null,
}
}
}
}