Skip to content

Commit b004cba

Browse files
author
Theodore Li
committed
Fix tests
1 parent 60a6745 commit b004cba

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ describe('OAuth Utils', () => {
166166
accountId: 'account-id',
167167
workspaceId: 'workspace-id',
168168
}
169-
const mockCredentialRow = { type: 'oauth', accountId: 'account-id' }
170169
const mockAccountRow = {
171170
id: 'account-id',
172171
accessToken: 'valid-token',
@@ -176,7 +175,6 @@ describe('OAuth Utils', () => {
176175
userId: 'test-user-id',
177176
}
178177
mockSelectChain([mockResolvedCredential])
179-
mockSelectChain([mockCredentialRow])
180178
mockSelectChain([mockAccountRow])
181179

182180
const token = await refreshAccessTokenIfNeeded('credential-id', 'test-user-id', 'request-id')
@@ -192,7 +190,6 @@ describe('OAuth Utils', () => {
192190
accountId: 'account-id',
193191
workspaceId: 'workspace-id',
194192
}
195-
const mockCredentialRow = { type: 'oauth', accountId: 'account-id' }
196193
const mockAccountRow = {
197194
id: 'account-id',
198195
accessToken: 'expired-token',
@@ -202,7 +199,6 @@ describe('OAuth Utils', () => {
202199
userId: 'test-user-id',
203200
}
204201
mockSelectChain([mockResolvedCredential])
205-
mockSelectChain([mockCredentialRow])
206202
mockSelectChain([mockAccountRow])
207203
mockUpdateChain()
208204

0 commit comments

Comments
 (0)