MCPcopy Index your code
hub / github.com/simstudioai/sim / makeCellsForUpdate

Function makeCellsForUpdate

apps/sim/hooks/use-table-undo.test.ts:149–155  ·  view source on GitHub ↗
(count: number)

Source from the content-addressed store, hash-verified

147
148describe('useTableUndo – update-cells chunking (via undo)', () => {
149 function makeCellsForUpdate(count: number) {
150 return Array.from({ length: count }, (_, i) => ({
151 rowId: `row-${i}`,
152 oldData: { col: `old-${i}` },
153 newData: { col: `new-${i}` },
154 }))
155 }
156
157 it('sends a single call when cells fit within limit', async () => {
158 const cells = makeCellsForUpdate(2)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected