Skip to content

Commit 3529bc7

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
Align tool expansion fixtures with staging interfaces
1 parent fada21c commit 3529bc7

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input-expansion.test.tsx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,17 @@ vi.mock('@/blocks', () => ({
2525
vi.mock('@/blocks/custom/client-overlay', () => ({ useCustomBlockOverlayVersion: () => 0 }))
2626
vi.mock('@/blocks/utils', () => ({ BUILT_IN_TOOL_TYPES: new Set() }))
2727
vi.mock('@/tools/metadata', () => ({ getToolMetadata: () => undefined }))
28-
vi.mock('@/providers/models', () => ({ supportsForcedToolUse: () => false }))
28+
vi.mock('@/providers/models', () => ({
29+
supportsForcedToolUse: () => false,
30+
supportsToolUsageControl: () => false,
31+
}))
2932
vi.mock('@/providers/utils', () => ({
3033
getProviderFromModel: () => '',
31-
supportsToolUsageControl: () => false,
3234
}))
3335
vi.mock('@/hooks/use-collaborative-workflow', () => ({
3436
useCollaborativeWorkflow: () => ({
3537
collaborativeSetBlockCanonicalMode: fixture.canonical,
36-
collaborativeSetBlockCanonicalModes: fixture.canonical,
38+
collaborativeSetSubblockValueWithCanonicalModes: fixture.canonical,
3739
}),
3840
}))
3941
vi.mock('@/hooks/use-permission-config', () => ({
@@ -173,6 +175,7 @@ vi.mock('@sim/emcn', () => ({
173175
<button {...props} />
174176
),
175177
Badge: ({ children }: { children: ReactNode }) => <span>{children}</span>,
178+
TagInput: () => null,
176179
cn: (...values: unknown[]) => values.filter(Boolean).join(' '),
177180
Combobox: ({
178181
groups,

0 commit comments

Comments
 (0)