-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fixup/github-actions-rename
- Loading branch information
Showing
132 changed files
with
41,572 additions
and
3,172 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ PORT=8000 | |
REACT_APP_EPIC_SUPPORTED_QUERIES=false | ||
GENERATE_SOURCEMAP=false | ||
|
||
#REACT_APP_SYSTEM_TYPE= |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# run test suite | ||
--- | ||
name: Test | ||
on: [push] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 10.x | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Run tests | ||
run: yarn test |
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 |
---|---|---|
|
@@ -18,3 +18,5 @@ USE_DEMO=false | |
|
||
#url for patient search | ||
REACT_APP_DASHBOARD_URL:http://localtest.me:5000 | ||
|
||
|
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,19 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta charset="utf-8" /> | ||
<!-- Use Internet Explorer Edge Standards mode --> | ||
<meta http-equiv="x-ua-compatible" content="IE=edge" > | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta name="theme-color" content="#000000"> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"> | ||
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> | ||
<meta http-equiv="x-ua-compatible" content="IE=edge" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
<meta name="theme-color" content="#000000" /> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<title>Washington Opioid Clinical Assessment</title> | ||
</head> | ||
<body> | ||
<noscript> | ||
You need to enable JavaScript to run this app. | ||
</noscript> | ||
<noscript> You need to enable JavaScript to run this app. </noscript> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
"scope": "patient/*.read launch/patient", | ||
"completeInTarget": true | ||
} | ||
|
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
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,23 @@ | ||
import { shallowRender } from "../../utils/testHelpers"; | ||
import Report from "../../components/Report"; | ||
import { mockSurveySummaryData } from "../../utils/testFixtures"; | ||
|
||
let spy; | ||
beforeAll(() => { | ||
// This test logs an ugly error because FHIR is not initialized (as expected). | ||
// Since we expect this error, we suppress console.error here | ||
spy = jest.spyOn(global.console, "error").mockImplementation(() => jest.fn()); | ||
}); | ||
afterAll(() => spy.mockRestore()); | ||
|
||
it("renders without summary data without crashing", () => { | ||
const component = shallowRender(Report); | ||
expect(component).toExist(); | ||
}); | ||
|
||
it("renders with summary data without crashing", () => { | ||
const component = shallowRender(Report, { | ||
summary: mockSurveySummaryData | ||
}); | ||
expect(component).toExist(); | ||
}); |
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,25 @@ | ||
import { shallowRender } from "../../../utils/testHelpers"; | ||
import Score from "../../../components/Report/components/Score"; | ||
|
||
it("renders the score with high severity", () => { | ||
const component = shallowRender(Score, { | ||
score: 1, | ||
scoreParams: { | ||
scoreSeverity: "high", | ||
}, | ||
}); | ||
expect(component.find(".text-alert")).toExist(); | ||
}); | ||
|
||
it("renders the score without severity", () => { | ||
const component = shallowRender(Score, { | ||
score: 1 | ||
}); | ||
expect(component.find(".text-alert")).toHaveLength(0); | ||
}); | ||
|
||
it("renders without params without crashing", () => { | ||
const component = shallowRender(Score); | ||
expect(component).toExist(); | ||
}); | ||
|
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,42 @@ | ||
import { shallowRender } from "../../../utils/testHelpers"; | ||
import { mockSurveySummaryData } from "../../../utils/testFixtures"; | ||
import { mockSurveySummaryNoData } from "../../../utils/testFixtures"; | ||
import ScoringSummary from "../../../components/Report/components/ScoringSummary"; | ||
|
||
const component = shallowRender(ScoringSummary, { | ||
summary: mockSurveySummaryData, | ||
}); | ||
|
||
it("renders without crashing", () => { | ||
expect(component).toExist(); | ||
}); | ||
|
||
it("renders the header with data", () => { | ||
expect(component.find(".table th")).toExist(); | ||
}); | ||
|
||
it("renders the body with data", () => { | ||
expect(component.find(".table .data-row")).toExist(); | ||
}); | ||
|
||
it("renders component without data without crashing", () => { | ||
const noDataComponent = shallowRender(ScoringSummary); | ||
expect(noDataComponent).toExist(); | ||
}); | ||
|
||
it("renders component without data - no header", () => { | ||
const noDataComponent = shallowRender(ScoringSummary); | ||
expect(noDataComponent.find(".table .no-data-row")).toExist(); | ||
}); | ||
|
||
it("renders component without data - no data row", () => { | ||
const noDataComponent = shallowRender(ScoringSummary); | ||
expect(noDataComponent.find(".table th")).toHaveLength(0); | ||
}); | ||
|
||
it("renders component without responses", () => { | ||
const noDataComponent = shallowRender(ScoringSummary, { | ||
summary: mockSurveySummaryNoData | ||
}); | ||
expect(noDataComponent.find(".table .no-data-row")).toExist(); | ||
}); |
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,7 @@ | ||
import { shallowRender } from "../../utils/testHelpers"; | ||
import SideNav from "../../components/SideNav"; | ||
|
||
it("renders the scrolling nav", () => { | ||
const component = shallowRender(SideNav); | ||
expect(component.find(".summary__nav")).toExist(); | ||
}); |
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
Oops, something went wrong.