1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
"name": "Mismatching the specifier map schema",
"importMapBaseURL": "https://base.example/",
"tests": {
"should ignore entries where the address is not a string": {
"importMap": {
"imports": {
"null": null,
"boolean": true,
"number": 1,
"object": {},
"array": [],
"array2": [
"https://example.com/"
],
"string": "https://example.com/"
}
},
"expectedParsedImportMap": {
"imports": {
"null": null,
"boolean": null,
"number": null,
"object": null,
"array": null,
"array2": null,
"string": "https://example.com/"
},
"scopes": {}
}
},
"should ignore entries where the specifier key is an empty string": {
"importMap": {
"imports": {
"": "https://example.com/"
}
},
"expectedParsedImportMap": {
"imports": {},
"scopes": {}
}
}
}
}
|