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

Function assertTextSpans

packages/language-service/testing/src/util.ts:57–60  ·  view source on GitHub ↗
(items: Array<{textSpan: string}>, expectedTextSpans: string[])

Source from the content-addressed store, hash-verified

55}
56
57export 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

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…