Skip to content

Commit 0180cf3

Browse files
waleedlatif1claude
andcommitted
test(mcp): seed stateCreatedAt in oauth start route fixtures
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent aa8cfdc commit 0180cf3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/sim/app/api/mcp/oauth/start/route.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ describe('MCP OAuth start route', () => {
6868
tokens: null,
6969
codeVerifier: null,
7070
state: null,
71+
stateCreatedAt: null,
7172
updatedAt: new Date(),
7273
})
7374
mcpOauthMockFns.mockLoadPreregisteredClient.mockResolvedValue(undefined)
@@ -119,6 +120,7 @@ describe('MCP OAuth start route', () => {
119120
tokens: null,
120121
codeVerifier: null,
121122
state: 'hashed-active-state',
123+
stateCreatedAt: new Date(),
122124
updatedAt: new Date(),
123125
})
124126
const request = new NextRequest(

0 commit comments

Comments
 (0)