(exp: string, expected?: string)
| 2069 | } |
| 2070 | |
| 2071 | function checkAction(exp: string, expected?: string) { |
| 2072 | const ast = parseAction(exp); |
| 2073 | if (expected == null) expected = exp; |
| 2074 | expect(unparse(ast)).toEqual(expected); |
| 2075 | validate(ast); |
| 2076 | } |
| 2077 | |
| 2078 | function expectError(ast: {errors: ParseError[]}, message: string, errorCount?: number) { |
| 2079 | if (errorCount != null) { |
no test coverage detected