Skip to content

Commit 36bab37

Browse files
committed
improvement(mothership): check the effort table against the outgoing request
1 parent eeda702 commit 36bab37

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/sim/lib/mothership/chat/post.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,9 +869,9 @@ describe('handleUnifiedChatPost', () => {
869869
})
870870
)
871871
expect(response.status).toBe(200)
872-
expect(buildCopilotRequestPayload).toHaveBeenCalledWith(
873-
expect.objectContaining({ effort: runs, modelSelection })
874-
)
872+
const { requestPayload } = createSSEStream.mock.lastCall?.[0] ?? {}
873+
expect(requestPayload?.effort).toBe(runs)
874+
expect(requestPayload?.modelSelection).toEqual(modelSelection)
875875
expect(admitTurn.mock.calls[0][0].input.effortChoice).toBe(sent && runs)
876876
}
877877
)

0 commit comments

Comments
 (0)