(exp: string, expected?: string)
| 1820 | } |
| 1821 | |
| 1822 | function checkAction(exp: string, expected?: string) { |
| 1823 | const ast = parseAction(exp); |
| 1824 | if (expected == null) expected = exp; |
| 1825 | expect(unparse(ast)).toEqual(expected); |
| 1826 | validate(ast); |
| 1827 | } |
| 1828 | |
| 1829 | function expectError(ast: {errors: ParseError[]}, message: string, errorCount?: number) { |
| 1830 | if (errorCount != null) { |
no test coverage detected