tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

parsing-schema-specifier-map.json (1043B)


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