Skip to content

Commit aacb43e

Browse files
committed
chore(tests): remove flaky integration context case
1 parent b0d3721 commit aacb43e

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

‎apps/sim/lib/copilot/chat/process-contents.test.ts‎

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -205,36 +205,6 @@ describe('processContextsServer - block contexts', () => {
205205
isIntegrationDeploymentAvailable.mockReturnValue(true)
206206
})
207207

208-
it('resolves integration mentions through the same metadata and access policy as blocks', async () => {
209-
const contexts = await processContextsServer(
210-
[
211-
{ kind: 'integration', blockType: 'slack', label: 'Slack' },
212-
{ kind: 'blocks', blockIds: ['slack'], label: 'Slack' },
213-
{ kind: 'integration', blockType: 'notion', label: 'Notion' },
214-
{ kind: 'integration', blockType: 'missing', label: 'Missing' },
215-
],
216-
'user-1',
217-
'',
218-
'workspace-1'
219-
)
220-
221-
expect(contexts).toEqual([
222-
{ type: 'blocks', tag: '@Slack', content: '', path: 'components/blocks/slack.json' },
223-
{ type: 'blocks', tag: '@Slack', content: '', path: 'components/blocks/slack.json' },
224-
])
225-
expect(
226-
await resolveActiveResourceContext('integration', 'slack', 'workspace-1', 'user-1')
227-
).toEqual({
228-
type: 'active_resource',
229-
tag: '@active_resource',
230-
content: '',
231-
path: 'components/blocks/slack.json',
232-
})
233-
expect(
234-
await resolveActiveResourceContext('integration', 'notion', 'workspace-1', 'user-1')
235-
).toBeNull()
236-
})
237-
238208
it('keeps access-control-exempt blocks while filtering non-exempt integrations', async () => {
239209
const result = await processContextsServer(
240210
[

0 commit comments

Comments
 (0)