MCPcopy Index your code
hub / github.com/angular/angular / expectErrorToken

Function expectErrorToken

packages/compiler/test/expression_parser/lexer_spec.ts:69–73  ·  view source on GitHub ↗
(token: Token, index: any, end: number, message: string)

Source from the content-addressed store, hash-verified

67}
68
69function expectErrorToken(token: Token, index: any, end: number, message: string) {
70 expectToken(token, index, end);
71 expect(token.isError()).toBe(true);
72 expect(token.toString()).toEqual(message);
73}
74
75function expectRegExpBodyToken(token: any, index: number, end: number, str: string) {
76 expectToken(token, index, end);

Callers 1

lexer_spec.tsFile · 0.85

Calls 3

expectTokenFunction · 0.85
isErrorMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…