Skip to content

Commit e70cf19

Browse files
committed
fix web test
1 parent 2de0bca commit e70cf19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/src/api/v1/chat/__tests__/completions.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ describe('/api/v1/chat/completions POST endpoint', () => {
346346
expect(response.status).toBe(402)
347347
const body = await response.json()
348348
expect(body.message).toContain('Insufficient credits')
349-
expect(body.message).toContain('http://localhost:3000/usage')
349+
expect(body.message).toContain(
350+
`${process.env.NEXT_PUBLIC_CODEBUFF_APP_URL}/usage`,
351+
)
350352
})
351353
})
352354

0 commit comments

Comments
 (0)