Skip to content

Commit

Permalink
ampath patient Reg to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Rugute committed Feb 26, 2024
1 parent f085b26 commit f497e07
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ describe('savePatient', () => {

it('appends patient uuid in url if provided', () => {
mockOpenmrsFetch.mockImplementationOnce((url) => url);
savePatient(null, '1234');
expect(mockOpenmrsFetch.mock.calls[0][0]).toEqual('/ws/rest/v1/patient/1234');
savePatient(null, '12345');
expect(mockOpenmrsFetch.mock.calls[0][0]).toEqual('/ws/rest/v1/patient/12345');
});

it('does not append patient uuid in url', () => {
Expand Down

0 comments on commit f497e07

Please sign in to comment.