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

Function expectAll

packages/language-service/test/completions_spec.ts:2336–2345  ·  view source on GitHub ↗
(
  completions: ts.CompletionInfo | undefined,
  contains: {[name: string]: ts.ScriptElementKind | DisplayInfoKind},
)

Source from the content-addressed store, hash-verified

2334}
2335
2336function expectAll(
2337 completions: ts.CompletionInfo | undefined,
2338 contains: {[name: string]: ts.ScriptElementKind | DisplayInfoKind},
2339): void {
2340 expect(completions).toBeDefined();
2341 for (const [name, kind] of Object.entries(contains)) {
2342 expect(completions!.entries).toContain(jasmine.objectContaining({name, kind} as any));
2343 }
2344 expect(completions!.entries.length).toEqual(Object.keys(contains).length);
2345}
2346
2347function expectDoesNotContain(
2348 completions: ts.CompletionInfo | undefined,

Callers 1

Calls 2

keysMethod · 0.65
entriesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…