Skip to content

Commit 8393e6f

Browse files
committed
fix test
1 parent bf85e96 commit 8393e6f

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

packages/shared/src/react/hooks/__tests__/useOAuthConsent.spec.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,6 @@ describe('useOAuthConsent', () => {
105105
expect(result.current.isLoading).toBe(false);
106106
});
107107

108-
it('does not call getConsentInfo when oauthApplication.getConsentInfo is missing', () => {
109-
mockClerk.oauthApplication = undefined;
110-
111-
const { result } = renderHook(() => useOAuthConsent({ oauthClientId: 'cid' }), { wrapper });
112-
113-
expect(getConsentInfoSpy).not.toHaveBeenCalled();
114-
expect(result.current.isLoading).toBe(false);
115-
});
116-
117108
it('uses client_id and scope from the URL when hook params omit them', async () => {
118109
window.history.replaceState({}, '', '/?client_id=from_url&scope=openid%20email');
119110

0 commit comments

Comments
 (0)