tor-browser

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

parsing-schema-scope.json (973B)


      1 {
      2  "name": "Mismatching scopes schema",
      3  "importMapBaseURL": "https://base.example/",
      4  "tests": {
      5    "should throw if a scope's value is not an object": {
      6      "expectedParsedImportMap": null,
      7      "tests": {
      8        "null": {
      9          "importMap": {
     10            "scopes": {
     11              "https://example.com/": null
     12            }
     13          }
     14        },
     15        "boolean": {
     16          "importMap": {
     17            "scopes": {
     18              "https://example.com/": true
     19            }
     20          }
     21        },
     22        "number": {
     23          "importMap": {
     24            "scopes": {
     25              "https://example.com/": 1
     26            }
     27          }
     28        },
     29        "string": {
     30          "importMap": {
     31            "scopes": {
     32              "https://example.com/": "foo"
     33            }
     34          }
     35        },
     36        "array": {
     37          "importMap": {
     38            "scopes": {
     39              "https://example.com/": []
     40            }
     41          }
     42        }
     43      }
     44    }
     45  }
     46 }