test(compiler-cli): fix TEST_CASES.json schema (#39939)

The schema accidentally included the `expectedErrors` and `extraCheck`
properties below the `files` property instead of below the `expectations`
property.

PR Close #39939
This commit is contained in:
Pete Bacon Darwin 2020-11-26 12:39:43 +00:00 committed by Misko Hevery
parent ef892743ec
commit 2afa3801bc
1 changed files with 55 additions and 55 deletions

View File

@ -73,67 +73,67 @@
"title": "A path (relative to the test case) where an file containing expected output can be found. (The generated path is inferred from this.)" "title": "A path (relative to the test case) where an file containing expected output can be found. (The generated path is inferred from this.)"
} }
] ]
}, }
"expectedErrors": { },
"title": "A collection of expected error messages for this test-case.", "expectedErrors": {
"type": "array", "title": "A collection of expected error messages for this test-case.",
"items": { "type": "array",
"title": "An array of strings that should appear in the error message.", "items": {
"type": "object", "title": "An array of strings that should appear in the error message.",
"properties": { "type": "object",
"message": { "properties": {
"title": "A regular expression that should match the error message", "message": {
"type": "string" "title": "A regular expression that should match the error message",
}, "type": "string"
"location": {
"title": "An optional regular expression that should match the location of the error",
"type": "string"
}
}, },
"required": [ "location": {
"message" "title": "An optional regular expression that should match the location of the error",
] "type": "string"
} }
}, },
"extraChecks": { "required": [
"title": "Additional checks to run against the generated code.", "message"
"type": "array", ]
"items": { }
"anyOf": [ },
{ "extraChecks": {
"title": "The name of a function to run as an additional check on the source.", "title": "Additional checks to run against the generated code.",
"type": "string" "type": "array",
}, "items": {
{ "anyOf": [
"title": "An array whose first element is the name of a function to run as an additional check, and subsequent elements are args for this function", {
"type": "array" "title": "The name of a function to run as an additional check on the source.",
} "type": "string"
] },
} {
"title": "An array whose first element is the name of a function to run as an additional check, and subsequent elements are args for this function",
"type": "array"
}
]
} }
} }
} }
},
"compilerOptions": {
"title": "Additional options to pass to the TypeScript compiler",
"type": "object"
},
"angularCompilerOptions": {
"title": "Additional options to pass to the Angular compiler",
"type": "object"
},
"focusTest": {
"title": "Set to true to focus on this test - equivalent to jasmine's `fit()` function",
"type": "boolean"
},
"excludeTest": {
"title": "Set to true to exclude this test - equivalent to jasmine's `xit()` function",
"type": "boolean"
} }
},
"compilerOptions": {
"title": "Additional options to pass to the TypeScript compiler",
"type": "object"
},
"angularCompilerOptions": {
"title": "Additional options to pass to the Angular compiler",
"type": "object"
},
"focusTest": {
"title": "Set to true to focus on this test - equivalent to jasmine's `fit()` function",
"type": "boolean"
},
"excludeTest": {
"title": "Set to true to exclude this test - equivalent to jasmine's `xit()` function",
"type": "boolean"
} }
}, }
"minItems": 1 },
} "minItems": 1
} }
} }
} }