From 7afbbbd41bd4e73a57efba1c80c996e573530dd1 Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Mon, 25 Sep 2023 17:31:04 +0300 Subject: [PATCH] fix tests --- .../src/components/ProjectCard/ProjectCard.test.js | 2 +- .../src/components/ProjectPageHeader/ProjectPageHeader.snap.js | 2 +- .../src/components/ProjectTile/ProjectTile.snap.js | 1 - .../src/components/ProjectTileList/ProjectTileList.snap.js | 1 - apps/codeforafrica/src/components/Projects/Projects.test.js | 3 ++- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/codeforafrica/src/components/ProjectCard/ProjectCard.test.js b/apps/codeforafrica/src/components/ProjectCard/ProjectCard.test.js index 8fa8f51c8..a3a43907e 100644 --- a/apps/codeforafrica/src/components/ProjectCard/ProjectCard.test.js +++ b/apps/codeforafrica/src/components/ProjectCard/ProjectCard.test.js @@ -8,7 +8,7 @@ import theme from "@/codeforafrica/theme"; // eslint-disable-next-line testing-library/render-result-naming-convention const render = createRender({ theme }); -const defaultProps = {}; +const defaultProps = { link: {} }; describe("", () => { it("renders unchanged", () => { diff --git a/apps/codeforafrica/src/components/ProjectPageHeader/ProjectPageHeader.snap.js b/apps/codeforafrica/src/components/ProjectPageHeader/ProjectPageHeader.snap.js index 21bc20a9a..c9a8e0d7f 100644 --- a/apps/codeforafrica/src/components/ProjectPageHeader/ProjectPageHeader.snap.js +++ b/apps/codeforafrica/src/components/ProjectPageHeader/ProjectPageHeader.snap.js @@ -45,7 +45,7 @@ exports[` renders unchanged 1`] = `
renders unchanged 1`] = ` class="MuiBox-root css-f1ltsh" > africanDRONE renders unchanged 1`] = ` class="MuiBox-root css-f1ltsh" > africanDRONE", () => {