-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MDS-5972] Update CORE homepage links (#3126)
update links, PDFs, and create a snap test for the HomePage which wasn't created before
- Loading branch information
Showing
8 changed files
with
559 additions
and
6 deletions.
There are no files selected for viewing
Binary file added
BIN
+2.33 MB
services/core-web/src/assets/downloads/2024_Mine_Emergency_Management_Plan.pdf
Binary file not shown.
Binary file removed
BIN
-1.42 MB
...ore-web/src/assets/downloads/7810_Mine_Emergency_Management_Plan_V4_DJ edits_20221031.pdf
Binary file not shown.
Binary file removed
BIN
-2.36 MB
services/core-web/src/assets/downloads/health_safety_and_reclamation_code_nov2022.pdf
Binary file not shown.
Binary file not shown.
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,27 @@ | ||
import React from "react"; | ||
import { render } from "@testing-library/react"; | ||
import HomePage from "@/components/homepage/HomePage"; | ||
import { ReduxWrapper } from "../utils/ReduxWrapper"; | ||
import { ACTIVITIES } from "@mds/common/constants/reducerTypes"; | ||
import * as MOCK from "@mds/common/tests/mocks/dataMocks"; | ||
import { BrowserRouter } from "react-router-dom"; | ||
|
||
const initialState = { | ||
[ACTIVITIES]: { | ||
activities: MOCK.ACTIVITIES.data.records, | ||
totalActivities: MOCK.ACTIVITIES.data.records.length, | ||
}, | ||
}; | ||
|
||
describe("HomePage", () => { | ||
it("renders properly", () => { | ||
const { container } = render( | ||
<ReduxWrapper initialState={initialState}> | ||
<BrowserRouter> | ||
<HomePage /> | ||
</BrowserRouter> | ||
</ReduxWrapper> | ||
); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
}); |
Oops, something went wrong.