Skip to content

Commit d726925

Browse files
committed
Stabilize chat completions provider tests
1 parent b88b0f7 commit d726925

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { afterEach, beforeEach, describe, expect, mock, it } from 'bun:test'
22
import { NextRequest } from 'next/server'
33

4+
import { TEST_USER_ID } from '@codebuff/common/constants/paths'
45
import {
56
FREEBUFF_DEEPSEEK_V4_FLASH_MODEL_ID,
67
FREEBUFF_DEEPSEEK_V4_PRO_MODEL_ID,
@@ -29,7 +30,7 @@ import type { GetUserPreferencesFn } from '../_post'
2930
describe('/api/v1/chat/completions POST endpoint', () => {
3031
const mockUserData: Record<string, { id: string; banned: boolean }> = {
3132
'test-api-key-123': {
32-
id: 'user-123',
33+
id: TEST_USER_ID,
3334
banned: false,
3435
},
3536
'test-api-key-no-credits': {

0 commit comments

Comments
 (0)