Skip to content

Commit 7ebe751

Browse files
committed
remove dup test
1 parent f615be6 commit 7ebe751

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

apps/sim/app/api/auth/oauth/token/route.test.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -255,28 +255,6 @@ describe('OAuth Token API Routes', () => {
255255
expect(mockGetOAuthToken).not.toHaveBeenCalled()
256256
})
257257

258-
it('should reject non-session authentication', async () => {
259-
mockCheckSessionOrInternalAuth.mockResolvedValueOnce({
260-
success: true,
261-
authType: 'internal_jwt',
262-
userId: 'test-user-id',
263-
})
264-
265-
const req = createMockRequest('POST', {
266-
credentialAccountUserId: 'test-user-id',
267-
providerId: 'google',
268-
})
269-
270-
const { POST } = await import('@/app/api/auth/oauth/token/route')
271-
272-
const response = await POST(req)
273-
const data = await response.json()
274-
275-
expect(response.status).toBe(401)
276-
expect(data).toHaveProperty('error', 'User not authenticated')
277-
expect(mockGetOAuthToken).not.toHaveBeenCalled()
278-
})
279-
280258
it('should reject internal JWT authentication', async () => {
281259
mockCheckSessionOrInternalAuth.mockResolvedValueOnce({
282260
success: true,

0 commit comments

Comments
 (0)