Skip to content

Commit e9947ef

Browse files
fix(search): update source route test fixtures
1 parent 7050b1a commit e9947ef

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

apps/sim/app/api/knowledge/sim-search/sources/route.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
/** @vitest-environment node */
22
import { authMockFns, createMockRequest } from '@sim/testing'
33
import { beforeEach, describe, expect, it, vi } from 'vitest'
4+
import type {
5+
OrganizationSearchProviderSummary,
6+
SearchSourceSummary,
7+
} from '@/lib/api/contracts/knowledge/connectors'
48

59
const mocks = vi.hoisted(() => ({
610
execute: vi.fn(),
@@ -58,9 +62,10 @@ const source = {
5862
viewerDocumentCount: 0,
5963
viewerFailedDocumentCount: 0,
6064
viewerEmailVerified: true,
65+
viewerAccounts: [],
6166
connectionRequired: false,
6267
viewerMembership: null,
63-
}
68+
} satisfies SearchSourceSummary
6469

6570
beforeEach(() => {
6671
vi.clearAllMocks()
@@ -266,8 +271,9 @@ describe('organization administration overview boundary', () => {
266271
sourceCount: 1,
267272
approved: true,
268273
status: 'waiting_for_connections',
274+
issue: null,
269275
isSyncing: false,
270-
}
276+
} satisfies OrganizationSearchProviderSummary
271277
mocks.adminOverview.mockResolvedValue({
272278
providers: [{ ...provider, privateAccount: 'private' }],
273279
documentNames: ['private'],

0 commit comments

Comments
 (0)