Skip to content

Commit db0ffc0

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
test(selectors): align migration expectations
1 parent a343f97 commit db0ffc0

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

apps/sim/hooks/queries/utils/invalidate-workflow-lists.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { describe, expect, it, vi } from 'vitest'
55
import { invalidateWorkflowLists } from '@/hooks/queries/utils/invalidate-workflow-lists'
66

77
describe('invalidateWorkflowLists', () => {
8-
it('invalidates scoped workflow lists and workflow selector caches', async () => {
8+
it('invalidates scoped workflow lists and the privacy-safe selector prefix', async () => {
99
const queryClient = {
1010
invalidateQueries: vi.fn().mockResolvedValue(undefined),
1111
}
@@ -19,7 +19,7 @@ describe('invalidateWorkflowLists', () => {
1919
queryKey: ['workflows', 'list', 'ws-1', 'archived'],
2020
})
2121
expect(queryClient.invalidateQueries).toHaveBeenNthCalledWith(3, {
22-
queryKey: ['selectors', 'sim.workflows', 'ws-1'],
22+
queryKey: ['selectors'],
2323
})
2424
})
2525
})

apps/sim/lib/credentials/client-credential-accounts/minters/zoho-desk.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,10 @@ describe('mintZohoDeskServiceAccountToken', () => {
274274
expect(result.apiDomain).toBe('https://desk.zoho.in')
275275
expect(mockLoggerWarn).toHaveBeenCalledWith(
276276
'Zoho api_domain disagrees with the selected data center',
277-
expect.objectContaining({
277+
{
278278
selectedDataCenter: 'eu',
279-
selectedDeskBase: 'https://desk.zoho.eu',
280-
reportedDeskBase: 'https://desk.zoho.in',
281-
})
279+
usedProviderReportedDomain: true,
280+
}
282281
)
283282
})
284283

0 commit comments

Comments
 (0)