Skip to content

Commit 59d25fe

Browse files
committed
fix(copilot): exercise idempotent-delete guard via the lean auth mock
1 parent 5849e77 commit 59d25fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/app/api/copilot/chat/delete/route.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ describe('Copilot Chat Delete API Route', () => {
143143
it('should delete chat even if it does not exist (idempotent)', async () => {
144144
authMockFns.mockGetSession.mockResolvedValue({ user: { id: 'user-123' } })
145145

146-
mockGetAccessibleCopilotChat.mockResolvedValueOnce(null)
146+
mockGetAccessibleCopilotChatAuth.mockResolvedValueOnce(null)
147147

148148
const req = createMockRequest('DELETE', {
149149
chatId: 'non-existent-chat',

0 commit comments

Comments
 (0)