Skip to content

Commit 2135c2b

Browse files
fix(web): align test mock with PublicProfile and PlatformLink types
1 parent b6e6ca4 commit 2135c2b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

apps/web/src/pages/ProfilePage.test.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@ describe('ProfilePage', () => {
3333

3434
it('renders profile data successfully', async () => {
3535
const mockProfile: PublicProfile = {
36-
id: '123',
37-
userId: '456',
3836
username: 'testuser',
3937
displayName: 'Test User',
4038
avatarUrl: 'https://example.com/avatar.jpg',
4139
bio: 'Test Bio',
40+
pronouns: null,
4241
role: 'Developer',
4342
company: 'Test Corp',
4443
accentColor: '#123456',
@@ -48,11 +47,9 @@ describe('ProfilePage', () => {
4847
platform: 'github',
4948
username: 'testgithub',
5049
url: '',
51-
order: 0,
50+
displayOrder: 0,
5251
}
5352
],
54-
createdAt: new Date().toISOString(),
55-
updatedAt: new Date().toISOString(),
5653
};
5754

5855
vi.mocked(apiFetch).mockResolvedValue(mockProfile);

0 commit comments

Comments
 (0)