Skip to content

Commit

Permalink
Fix person api
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightrider0098 committed Feb 3, 2024
1 parent c2b0165 commit 17e046c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/people/__test__/userProfile.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ import '@testing-library/jest-dom/extend-expect';
import { render, screen } from '@testing-library/react';
import { UserInfoDesktopView } from 'people/userInfo/UserInfoDesktopView';
import { MOCK_ENVIRONMENT_HOOKS } from '__test__/__mockStore__/constants';
import nock from 'nock';
import { user } from '__test__/__mockData__/user';
import MockStoreEnvironment from '../../../__test__/__mockStore__/MockStoreEnvironment';

describe('User Profile', () => {
it('Should render edit profile button of self profile', () => {
nock(user.url).get('/person/id/1').reply(200, {});
render(
<MockStoreEnvironment hooks={[MOCK_ENVIRONMENT_HOOKS.SELF_PROFILE_STORE]}>
<UserInfoDesktopView setShowSupport={() => null} />
Expand Down

0 comments on commit 17e046c

Please sign in to comment.