Skip to content

Commit b3f6bff

Browse files
author
aadamgough
committed
added new test routes to fix build
1 parent 883c701 commit b3f6bff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/app/api/auth/oauth/utils.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ describe('OAuth Utils', () => {
163163

164164
const result = await refreshTokenIfNeeded('request-id', mockCredential, 'credential-id')
165165

166-
expect(mockRefreshOAuthToken).toHaveBeenCalledWith('google', 'refresh-token')
166+
expect(mockRefreshOAuthToken).toHaveBeenCalledWith('google', 'refresh-token', undefined)
167167
expect(mockDb.update).toHaveBeenCalled()
168168
expect(mockDb.set).toHaveBeenCalled()
169169
expect(result).toEqual({ accessToken: 'new-token', refreshed: true })
@@ -251,7 +251,7 @@ describe('OAuth Utils', () => {
251251

252252
const token = await refreshAccessTokenIfNeeded('credential-id', 'test-user-id', 'request-id')
253253

254-
expect(mockRefreshOAuthToken).toHaveBeenCalledWith('google', 'refresh-token')
254+
expect(mockRefreshOAuthToken).toHaveBeenCalledWith('google', 'refresh-token', undefined)
255255
expect(mockDb.update).toHaveBeenCalled()
256256
expect(mockDb.set).toHaveBeenCalled()
257257
expect(token).toBe('new-token')

0 commit comments

Comments
 (0)