(
completions: ts.CompletionInfo | undefined,
contains: {[name: string]: ts.ScriptElementKind | DisplayInfoKind},
)
| 2334 | } |
| 2335 | |
| 2336 | function 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 | |
| 2347 | function expectDoesNotContain( |
| 2348 | completions: ts.CompletionInfo | undefined, |
no test coverage detected
searching dependent graphs…