Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peterMuriuki committed Jan 22, 2024
1 parent 203a63e commit 7537956
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import userEvents from '@testing-library/user-event';
import { URL_USER, URL_USER_CREDENTIALS, UserCredentials } from '@opensrp/user-management';
import { practitioner, userFixtures, group } from './fixtures';
import fetch from 'jest-fetch-mock';
import { practitionerResourceType, practitionerRoleResourceType } from '../../../../constants';
import { USER_DETAILS_URL, practitionerResourceType, practitionerRoleResourceType } from '../../../../constants';
import flushPromises from 'flush-promises';
import { practitionerRoleBundle } from '../../../CreateEditUser/tests/fixtures';
import { RoleContext } from '@opensrp/rbac';
Expand Down Expand Up @@ -332,5 +332,5 @@ test('View details navigates correctly', async () => {
</span>
`);
fireEvent.click(viewDetailsLink);
expect(history.location.pathname).toEqual(`${URL_USER}/081724e8-5fc1-47dd-8d0c-fa0c6ae6ddf0`);
expect(history.location.pathname).toEqual(`${USER_DETAILS_URL}/081724e8-5fc1-47dd-8d0c-fa0c6ae6ddf0`);
});

0 comments on commit 7537956

Please sign in to comment.