-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update SWR to version 2.x and add KenyaEMR link unit test (#8)
* chore: update swr to version 2.x * add Unit test for KenyaEMR link
- Loading branch information
1 parent
e87f4fd
commit 3c9bacb
Showing
4 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/esm-patient-flags-app/src/kenyaemr-link/kenyaemr-link.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react'; | ||
import KenyaEMRLink from './kenyaemr-link.component'; | ||
import { render, screen } from '@testing-library/react'; | ||
|
||
describe('KenyaEMR Link', () => { | ||
test('should display the KenyaEMR link to SPA', () => { | ||
render(<KenyaEMRLink />); | ||
|
||
const kenyaEMRLink = screen.getByRole('link', { name: /KenyaEMR/i }); | ||
expect(kenyaEMRLink).toBeInTheDocument(); | ||
expect(kenyaEMRLink).toHaveAttribute('href', '/openmrs/kenyaemr/userHome.page?'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters