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
+
@@ -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("", () => {