Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
peterMuriuki committed Jan 22, 2024
1 parent 806543e commit d891d8a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ export const UserDeleteBtn = (props: UserDeleteBtnProp) => {
onConfirm={async () => {
await deleteUser(keycloakBaseUrl, fhirBaseUrl, resourceId, t);
try {
return await queryClient.invalidateQueries({queryKey: [KEYCLOAK_URL_USERS], exact: true});
return await queryClient.invalidateQueries({
queryKey: [KEYCLOAK_URL_USERS],
exact: true,
});
} catch {
return sendErrorNotification(
t('Failed to update data, please refresh the page to see the most recent changes')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ 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 { USER_DETAILS_URL, 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 +336,7 @@ test('View details navigates correctly', async () => {
</span>
`);
fireEvent.click(viewDetailsLink);
expect(history.location.pathname).toEqual(`${USER_DETAILS_URL}/081724e8-5fc1-47dd-8d0c-fa0c6ae6ddf0`);
expect(history.location.pathname).toEqual(
`${USER_DETAILS_URL}/081724e8-5fc1-47dd-8d0c-fa0c6ae6ddf0`
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ export const CodeableConcept = (props: CodeableConceptProps) => {
))}
</>
);
return <Tooltip title={codingsTitle} color='white'>{text ? <Text>{text}</Text> : codingsTitle}</Tooltip>;
return (
<Tooltip title={codingsTitle} color="white">
{text ? <Text>{text}</Text> : codingsTitle}
</Tooltip>
);
};

0 comments on commit d891d8a

Please sign in to comment.