From 7ebe751e8f7786141b694ff5cea3855039d66ba7 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Fri, 6 Feb 2026 21:54:16 -0800 Subject: [PATCH] remove dup test --- .../app/api/auth/oauth/token/route.test.ts | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/apps/sim/app/api/auth/oauth/token/route.test.ts b/apps/sim/app/api/auth/oauth/token/route.test.ts index a43cade34..325f4d6c2 100644 --- a/apps/sim/app/api/auth/oauth/token/route.test.ts +++ b/apps/sim/app/api/auth/oauth/token/route.test.ts @@ -255,28 +255,6 @@ describe('OAuth Token API Routes', () => { expect(mockGetOAuthToken).not.toHaveBeenCalled() }) - it('should reject non-session authentication', async () => { - mockCheckSessionOrInternalAuth.mockResolvedValueOnce({ - success: true, - authType: 'internal_jwt', - userId: 'test-user-id', - }) - - const req = createMockRequest('POST', { - credentialAccountUserId: 'test-user-id', - providerId: 'google', - }) - - const { POST } = await import('@/app/api/auth/oauth/token/route') - - const response = await POST(req) - const data = await response.json() - - expect(response.status).toBe(401) - expect(data).toHaveProperty('error', 'User not authenticated') - expect(mockGetOAuthToken).not.toHaveBeenCalled() - }) - it('should reject internal JWT authentication', async () => { mockCheckSessionOrInternalAuth.mockResolvedValueOnce({ success: true,