MCPcopy Create free account
hub / github.com/angular/angular / checkAction

Function checkAction

packages/compiler/test/expression_parser/parser_spec.ts:1822–1827  ·  view source on GitHub ↗
(exp: string, expected?: string)

Source from the content-addressed store, hash-verified

1820}
1821
1822function 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
1829function expectError(ast: {errors: ParseError[]}, message: string, errorCount?: number) {
1830 if (errorCount != null) {

Callers 2

parser_spec.tsFile · 0.85
checkActionWithErrorFunction · 0.85

Calls 3

unparseFunction · 0.90
validateFunction · 0.90
parseActionFunction · 0.70

Tested by

no test coverage detected