From 17e046c5ba3ccee06172375c9da07dd84a9ce792 Mon Sep 17 00:00:00 2001 From: Nightrider0098 Date: Sat, 3 Feb 2024 22:45:32 +0530 Subject: [PATCH] Fix person api --- src/pages/people/__test__/userProfile.spec.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/people/__test__/userProfile.spec.tsx b/src/pages/people/__test__/userProfile.spec.tsx index 6f323126d..f5666f51a 100644 --- a/src/pages/people/__test__/userProfile.spec.tsx +++ b/src/pages/people/__test__/userProfile.spec.tsx @@ -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( null} />