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

Function checkAction

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

Source from the content-addressed store, hash-verified

2069}
2070
2071function 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
2078function expectError(ast: {errors: ParseError[]}, message: string, errorCount?: number) {
2079 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