MCPcopy
hub / github.com/Comcast/react-data-grid / assertElements

Function assertElements

test/browser/virtualization.test.ts:38–48  ·  view source on GitHub ↗
(
  elements: Element[],
  attribute: string,
  count: number,
  startIdx: number,
  endIdx: number
)

Source from the content-addressed store, hash-verified

36}
37
38function assertElements(
39 elements: Element[],
40 attribute: string,
41 count: number,
42 startIdx: number,
43 endIdx: number
44) {
45 expect(elements).toHaveLength(count);
46 expect(elements[0]).toHaveAttribute(attribute, String(startIdx));
47 expect(elements[elements.length - 1]).toHaveAttribute(attribute, String(endIdx));
48}
49
50function assertIndexes(
51 cells: Element[],

Callers 3

assertHeaderCellsFunction · 0.85
assertRowsFunction · 0.85
assertCellsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected