Skip to content

Commit 2bdcd52

Browse files
committed
test(sso): default-mock discovery fetch so intent is explicit
1 parent 85b78c7 commit 2bdcd52

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/sim/app/api/auth/sso/register/route.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ describe('POST /api/auth/sso/register', () => {
114114
mockGetSession.mockResolvedValue({ user: { id: 'u1' } })
115115
mockHasSSOAccess.mockResolvedValue(true)
116116
mockValidateUrlWithDNS.mockResolvedValue({ isValid: true, resolvedIP: '1.2.3.4' })
117+
mockSecureFetchWithPinnedIP.mockRejectedValue(new Error('discovery not mocked for this test'))
117118
mockRegisterSSOProvider.mockResolvedValue({ providerId: 'acme-oidc' })
118119
})
119120

0 commit comments

Comments
 (0)