Skip to content

Commit 42f5eab

Browse files
committed
test(billing): pass the route context in the legacy-account failure case
1 parent e7505ab commit 42f5eab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/sim/app/api/copilot/api-keys/validate/route.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ describe('POST /api/copilot/api-keys/validate billing protocols', () => {
305305
}
306306
)
307307

308-
const res = await POST(request(SELF_HOSTED_WORKSPACELESS_VALIDATE_BODY))
308+
const res = await POST(request(SELF_HOSTED_WORKSPACELESS_VALIDATE_BODY), createRouteContext({}))
309309

310310
expect(res.status).toBe(500)
311311
expect(mockCheckServerSideUsageLimits).not.toHaveBeenCalled()

0 commit comments

Comments
 (0)