From 25a20dbaffe1f026eff99bf1b519a6ccd4679ab8 Mon Sep 17 00:00:00 2001 From: Kipruto <43873157+kelvinkipruto@users.noreply.github.com> Date: Thu, 28 Sep 2023 17:27:31 +0300 Subject: [PATCH] Regenerate snapshots --- .../ArticlePage/ArticlePage.snap.js | 71 ++++++++++++++++++- .../ArticlePage/ArticlePage.test.js | 23 +++++- 2 files changed, 92 insertions(+), 2 deletions(-) diff --git a/apps/codeforafrica/src/components/ArticlePage/ArticlePage.snap.js b/apps/codeforafrica/src/components/ArticlePage/ArticlePage.snap.js index 37f82b83a..5dbfb1bc6 100644 --- a/apps/codeforafrica/src/components/ArticlePage/ArticlePage.snap.js +++ b/apps/codeforafrica/src/components/ArticlePage/ArticlePage.snap.js @@ -23,11 +23,33 @@ exports[` renders unchanged 1`] = ` + + Sept 1, 2021 + Article + + + + tag2 + + + @@ -93,7 +115,54 @@ exports[` renders unchanged 1`] = ` + > + + + Article by + + + + Author 1 + + + Author 1 bio + + + + + + Article by + + + + Author 2 + + + Author 2 bio + + + + `; diff --git a/apps/codeforafrica/src/components/ArticlePage/ArticlePage.test.js b/apps/codeforafrica/src/components/ArticlePage/ArticlePage.test.js index 83932d859..66fb1176e 100644 --- a/apps/codeforafrica/src/components/ArticlePage/ArticlePage.test.js +++ b/apps/codeforafrica/src/components/ArticlePage/ArticlePage.test.js @@ -9,7 +9,16 @@ import theme from "@/codeforafrica/theme"; const render = createRender({ theme }); const defaultProps = { - authors: [], + authors: [ + { + name: "Author 1", + bio: "Author 1 bio", + }, + { + name: "Author 2", + bio: "Author 2 bio", + }, + ], coverImage: { src: "/images/stories-1.png", alt: "Stories", @@ -65,6 +74,18 @@ const defaultProps = { ], }, ], + tags: [ + { + name: "tag1", + slug: "tag1", + }, + { + name: "tag2", + slug: "tag2", + }, + ], + primaryTag: "tag1", + publishedOn: "Sept 1, 2021", }; describe("", () => {