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

Function expectContain

packages/language-service/test/completions_spec.ts:2325–2334  ·  view source on GitHub ↗
(
  completions: ts.CompletionInfo | undefined,
  kind: ts.ScriptElementKind | DisplayInfoKind,
  names: string[],
)

Source from the content-addressed store, hash-verified

2323}
2324
2325function expectContain(
2326 completions: ts.CompletionInfo | undefined,
2327 kind: ts.ScriptElementKind | DisplayInfoKind,
2328 names: string[],
2329) {
2330 expect(completions).toBeDefined();
2331 for (const name of names) {
2332 expect(completions!.entries).toContain(jasmine.objectContaining({name, kind} as any));
2333 }
2334}
2335
2336function expectAll(
2337 completions: ts.CompletionInfo | undefined,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…