Skip to content

Commit 8bfd602

Browse files
committed
tweak types in unit test
1 parent 1cb4998 commit 8bfd602

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

web/src/__tests__/api/v1/me-route.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ import type {
1010
} from '@codebuff/common/types/contracts/database'
1111

1212
describe('/api/v1/me route', () => {
13-
const mockUserData: Record<string, any> = {
13+
const mockUserData: Record<
14+
string,
15+
Awaited<
16+
GetUserInfoFromApiKeyOutput<(typeof VALID_USER_INFO_FIELDS)[number]>
17+
>
18+
> = {
1419
'test-api-key-123': {
1520
id: 'user-123',
1621
email: 'test@example.com',

0 commit comments

Comments
 (0)