(items: Array<{textSpan: string}>, expectedTextSpans: string[])
| 55 | } |
| 56 | |
| 57 | export function assertTextSpans(items: Array<{textSpan: string}>, expectedTextSpans: string[]) { |
| 58 | const actualSpans = items.map((item) => item.textSpan); |
| 59 | expect(new Set(actualSpans)).toEqual(new Set(expectedTextSpans)); |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Returns whether the given `ts.Diagnostic` is of a type only produced by the Angular compiler (as |
no test coverage detected
searching dependent graphs…