(input: string, expected: any, options?: ParseOptions)
| 23 | } |
| 24 | |
| 25 | function assertValidParse(input: string, expected: any, options?: ParseOptions): void { |
| 26 | const errors: ParseError[] = []; |
| 27 | const actual = parse(input, errors, options); |
| 28 | |
| 29 | if (errors.length !== 0) { |
| 30 | assert(false, getParseErrorMessage(errors[0].error)); |
| 31 | } |
| 32 | assert.deepStrictEqual(actual, expected); |
| 33 | } |
| 34 | |
| 35 | function assertInvalidParse(input: string, expected: any, options?: ParseOptions): void { |
| 36 | const errors: ParseError[] = []; |
no test coverage detected
searching dependent graphs…