Function
expectContain
(
completions: ts.CompletionInfo | undefined,
kind: ts.ScriptElementKind | DisplayInfoKind,
names: string[],
)
Source from the content-addressed store, hash-verified
| 2323 | } |
| 2324 | |
| 2325 | function 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 | |
| 2336 | function expectAll( |
| 2337 | completions: ts.CompletionInfo | undefined, |
Tested by
no test coverage detected