mirror of
https://github.com/simstudioai/sim.git
synced 2026-11-04 15:52:15 +08:00
test(workflows): update archiveWorkflow update count after forms removal
The forms feature was removed, dropping the form-table update from archiveWorkflow. Update the stale assertion from 8 to 7 tx.update calls.
This commit is contained in:
@@ -102,7 +102,7 @@ describe('workflow lifecycle', () => {
|
||||
const result = await archiveWorkflow('workflow-1', { requestId: 'req-1' })
|
||||
|
||||
expect(result.archived).toBe(true)
|
||||
expect(tx.update).toHaveBeenCalledTimes(8)
|
||||
expect(tx.update).toHaveBeenCalledTimes(7)
|
||||
expect(mockWorkflowDeleted).toHaveBeenCalledWith({
|
||||
workflowId: 'workflow-1',
|
||||
workspaceId: 'workspace-1',
|
||||
|
||||
Reference in New Issue
Block a user