MCPcopy
hub / github.com/angular/angular / checkAction

Function checkAction

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

Source from the content-addressed store, hash-verified

1817}
1818
1819function 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
1826function expectError(ast: {errors: ParseError[]}, message: string, errorCount?: number) {
1827 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…