Skip to content

Commit 44afd15

Browse files
committed
test: assert committed outcomes without logger call checks
1 parent 7c68116 commit 44afd15

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎apps/sim/lib/uploads/server/content-effects.test.ts‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { createLogger } from '@sim/logger'
21
import { beforeEach, describe, expect, it, vi } from 'vitest'
32

43
const mocks = vi.hoisted(() => ({ cleanup: vi.fn(), reconcile: vi.fn() }))
@@ -28,18 +27,10 @@ describe('committed file reconciliation policy', () => {
2827
async (status) => {
2928
mocks.reconcile.mockResolvedValue(status)
3029
await expect(finishFileContentEffects(effects, {})).resolves.toBeUndefined()
31-
expect(createLogger('FileContentEffects').error).toHaveBeenCalledWith(
32-
'Committed file live-document reconciliation requires intervention',
33-
expect.objectContaining({ eventId: 'event-1', result: status })
34-
)
3530
}
3631
)
3732
it('reports an inline processing exception without failing the committed write', async () => {
3833
mocks.reconcile.mockRejectedValue(new Error('database unavailable'))
3934
await expect(finishFileContentEffects(effects, {})).resolves.toBeUndefined()
40-
expect(createLogger('FileContentEffects').error).toHaveBeenCalledWith(
41-
'Committed file live-document reconciliation failed inline',
42-
expect.objectContaining({ eventId: 'event-1' })
43-
)
4435
})
4536
})

0 commit comments

Comments
 (0)