mirror of
https://github.com/jlengrand/open-wc.git
synced 2026-03-10 08:31:19 +00:00
47 lines
973 B
JSON
47 lines
973 B
JSON
{
|
|
"name": "Mismatching scopes schema",
|
|
"importMapBaseURL": "https://base.example/",
|
|
"tests": {
|
|
"should throw if a scope's value is not an object": {
|
|
"expectedParsedImportMap": null,
|
|
"tests": {
|
|
"null": {
|
|
"importMap": {
|
|
"scopes": {
|
|
"https://example.com/": null
|
|
}
|
|
}
|
|
},
|
|
"boolean": {
|
|
"importMap": {
|
|
"scopes": {
|
|
"https://example.com/": true
|
|
}
|
|
}
|
|
},
|
|
"number": {
|
|
"importMap": {
|
|
"scopes": {
|
|
"https://example.com/": 1
|
|
}
|
|
}
|
|
},
|
|
"string": {
|
|
"importMap": {
|
|
"scopes": {
|
|
"https://example.com/": "foo"
|
|
}
|
|
}
|
|
},
|
|
"array": {
|
|
"importMap": {
|
|
"scopes": {
|
|
"https://example.com/": []
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|