MCPcopy Create free account
hub / github.com/bvaughn/react-window / createElement

Function createElement

lib/core/itemIndex.test.ts:9–15  ·  view source on GitHub ↗
(attributes: Record<string, string>)

Source from the content-addressed store, hash-verified

7
8describe("getItemIndex", () => {
9 function createElement(attributes: Record<string, string>) {
10 const element = document.createElement("div");
11 for (const [name, value] of Object.entries(attributes)) {
12 element.setAttribute(name, value);
13 }
14 return element;
15 }
16
17 test("should read the index set by List", () => {
18 expect(

Callers 4

itemIndex.test.tsFile · 0.70
decodeListFunction · 0.50
decodeRowComponentFunction · 0.50
decodeTextFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected