Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
chore: fix integ tests (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmayda authored Aug 16, 2021
1 parent 0bbbad3 commit 7dd2634
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration-tests/smartAuth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ describe('Negative tests', () => {
const fhirClient = await getFhirClient('launch/patient', false);

await expect(getPatient(fhirClient, sherlockId)).rejects.toMatchObject({
response: { status: 403 },
response: { status: 401 },
});
});

test('Invalid access token', async () => {
const fhirClient = await getFhirClient('launch/patient patient/Patient.read', false, 'Invalid Access Token');
await expect(getPatient(fhirClient, sherlockId)).rejects.toMatchObject({
response: { status: 403 },
response: { status: 401 },
});
});

Expand All @@ -43,7 +43,7 @@ describe('Negative tests', () => {
const fhirClient = await getFhirClient('launch/patient patient/Patient.read', false);

await expect(getPatient(fhirClient, watsonId)).rejects.toMatchObject({
response: { status: 403 },
response: { status: 401 },
});
});
});

0 comments on commit 7dd2634

Please sign in to comment.