Skip to content

Commit a1f917d

Browse files
committed
Fix tests
1 parent 3b7fc9a commit a1f917d

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ describe('Chat API Route', () => {
214214
}
215215

216216
mockLimit.mockResolvedValueOnce([{ id: 'existing-chat' }]) // Identifier exists
217+
mockCheckWorkflowAccessForChatCreation.mockResolvedValue({ hasAccess: false })
217218

218219
const req = new NextRequest('http://localhost:3000/api/chat', {
219220
method: 'POST',

apps/sim/lib/copilot/orchestrator/sse/handlers/handlers.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ vi.mock('@/lib/copilot/orchestrator/tool-executor', () => ({
1919
isToolAvailableOnSimSide,
2020
}))
2121

22-
import { sseHandlers } from '@/lib/copilot/orchestrator/sse-handlers'
22+
import { sseHandlers } from '@/lib/copilot/orchestrator/sse/handlers'
2323
import type { ExecutionContext, StreamingContext } from '@/lib/copilot/orchestrator/types'
2424

2525
describe('sse-handlers tool lifecycle', () => {

apps/sim/lib/copilot/orchestrator/sse/utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
normalizeSseEvent,
77
shouldSkipToolCallEvent,
88
shouldSkipToolResultEvent,
9-
} from '@/lib/copilot/orchestrator/sse-utils'
9+
} from '@/lib/copilot/orchestrator/sse/utils'
1010

1111
describe('sse-utils', () => {
1212
it.concurrent('normalizes tool fields from string data', () => {

apps/sim/lib/copilot/orchestrator/stream/buffer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ import {
8888
appendStreamEvent,
8989
createStreamEventWriter,
9090
readStreamEvents,
91-
} from '@/lib/copilot/orchestrator/stream-buffer'
91+
} from '@/lib/copilot/orchestrator/stream/buffer'
9292

9393
describe('stream-buffer', () => {
9494
beforeEach(() => {

0 commit comments

Comments
 (0)