Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Sep 25, 2023
1 parent 299f565 commit 7afbbbd
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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("<ProjectCard />", () => {
it("renders unchanged", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ exports[`<ProjectPageHeader /> renders unchanged 1`] = `
</ol>
</nav>
<img
class="MuiCardMedia-root MuiCardMedia-media MuiCardMedia-img css-vpxcaz-MuiCardMedia-root"
class="MuiCardMedia-root MuiCardMedia-media MuiCardMedia-img css-tm1rxb-MuiCardMedia-root"
/>
<div
class="MuiBox-root css-1ntmuzk"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ exports[`<ProjectTile /> renders unchanged 1`] = `
class="MuiBox-root css-f1ltsh"
>
<img
alt="africanDRONE"
class="css-g98gbd"
data-nimg="fill"
decoding="async"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ exports[`<ProjectTileList /> renders unchanged 1`] = `
class="MuiBox-root css-f1ltsh"
>
<img
alt="africanDRONE"
class="css-g98gbd"
data-nimg="fill"
decoding="async"
Expand Down
3 changes: 2 additions & 1 deletion apps/codeforafrica/src/components/Projects/Projects.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import theme from "@/codeforafrica/theme";
const render = createRender({ theme });

const defaultProps = {
projects: { pagination: {}, results: [] },
pagination: {},
results: [],
};

describe("<Projects />", () => {
Expand Down

0 comments on commit 7afbbbd

Please sign in to comment.