Skip to content

Commit f1d1ec0

Browse files
committed
test(files): update storage-accounting assertion to the mergeEditIntoLiveFileDoc options object
1 parent ef3f144 commit f1d1ec0

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

apps/sim/lib/uploads/contexts/workspace/workspace-file-storage-accounting.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,9 @@ describe('workspace file metadata and storage accounting', () => {
364364
Buffer.from('# new content', 'utf-8')
365365
)
366366

367-
expect(mockMergeEditIntoLiveFileDoc).toHaveBeenCalledWith(
368-
MD_ROW.id,
369-
'# new content',
370-
updatedFile.contentUpdatedAt.getTime()
371-
)
367+
expect(mockMergeEditIntoLiveFileDoc).toHaveBeenCalledWith(MD_ROW.id, '# new content', {
368+
version: updatedFile.contentUpdatedAt.getTime(),
369+
})
372370
})
373371

374372
it('does NOT merge when syncLiveDoc is false (the relay persist / empty-shell opt-out)', async () => {

0 commit comments

Comments
 (0)