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