Skip to content

Commit 6b963d7

Browse files
committed
Fix lint
1 parent 0c67c36 commit 6b963d7

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

apps/sim/lib/copilot/orchestrator/index.test.ts

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@
55
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
66
import type { OrchestratorOptions } from './types'
77

8-
const {
9-
prepareExecutionContext,
10-
getEffectiveDecryptedEnv,
11-
runStreamLoop,
12-
updateRunStatus,
13-
} = vi.hoisted(() => ({
14-
prepareExecutionContext: vi.fn(),
15-
getEffectiveDecryptedEnv: vi.fn(),
16-
runStreamLoop: vi.fn(),
17-
updateRunStatus: vi.fn(),
18-
}))
8+
const { prepareExecutionContext, getEffectiveDecryptedEnv, runStreamLoop, updateRunStatus } =
9+
vi.hoisted(() => ({
10+
prepareExecutionContext: vi.fn(),
11+
getEffectiveDecryptedEnv: vi.fn(),
12+
runStreamLoop: vi.fn(),
13+
updateRunStatus: vi.fn(),
14+
}))
1915

2016
vi.mock('@/lib/copilot/orchestrator/tool-executor', () => ({
2117
prepareExecutionContext,
@@ -118,14 +114,13 @@ describe('orchestrateCopilotStream async continuation', () => {
118114
}),
119115
})
120116

121-
runStreamLoop
122-
.mockImplementationOnce(async (_url: string, _opts: RequestInit, context: any) => {
123-
context.awaitingAsyncContinuation = {
124-
checkpointId: 'checkpoint-1',
125-
runId: 'run-1',
126-
pendingToolCallIds: ['tool-1'],
127-
}
128-
})
117+
runStreamLoop.mockImplementationOnce(async (_url: string, _opts: RequestInit, context: any) => {
118+
context.awaitingAsyncContinuation = {
119+
checkpointId: 'checkpoint-1',
120+
runId: 'run-1',
121+
pendingToolCallIds: ['tool-1'],
122+
}
123+
})
129124

130125
const result = await orchestrateCopilotStream(
131126
{ message: 'hello' },

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,11 @@ describe('sse-handlers tool lifecycle', () => {
201201
await sseHandlers.tool_call(
202202
{
203203
type: 'tool_call',
204-
data: { id: 'tool-mark-complete', name: 'workspace_file', arguments: { operation: 'write' } },
204+
data: {
205+
id: 'tool-mark-complete',
206+
name: 'workspace_file',
207+
arguments: { operation: 'write' },
208+
},
205209
} as any,
206210
context,
207211
execContext,

0 commit comments

Comments
 (0)