MCPcopy Create free account
hub / github.com/adobe/react-spectrum / mapFromWidths

Function mapFromWidths

packages/react-aria/test/table/tableResizingTests.tsx:182–184  ·  view source on GitHub ↗
(columnNames, widths)

Source from the content-addressed store, hash-verified

180
181 describe('interactions', () => {
182 function mapFromWidths(columnNames, widths) {
183 return new Map(widths.map((width, i) => [columnNames[i].toLowerCase(), width]));
184 }
185
186 it.each`
187 col | delta | expected | expectedOnResize

Callers 1

resizingTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected