(input: string, expected: any, options?: ParseOptions)
| 33 | } |
| 34 | |
| 35 | function assertInvalidParse(input: string, expected: any, options?: ParseOptions): void { |
| 36 | const errors: ParseError[] = []; |
| 37 | const actual = parse(input, errors, options); |
| 38 | |
| 39 | assert(errors.length > 0); |
| 40 | assert.deepStrictEqual(actual, expected); |
| 41 | } |
| 42 | |
| 43 | function assertTree(input: string, expected: any, expectedErrors: number[] = [], options?: ParseOptions): void { |
| 44 | const errors: ParseError[] = []; |
no test coverage detected
searching dependent graphs…