From 38090a3a0f3449360e46b209b8f98a565341d23d Mon Sep 17 00:00:00 2001 From: alxshelepenok Date: Fri, 9 Nov 2018 23:03:28 +0300 Subject: [PATCH] Update tests --- src/components/Sidebar/Author/Author.test.js | 1 + src/components/Sidebar/Author/__snapshots__/Author.test.js.snap | 2 +- src/components/Sidebar/Sidebar.test.js | 1 + src/components/Sidebar/__snapshots__/Sidebar.test.js.snap | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Sidebar/Author/Author.test.js b/src/components/Sidebar/Author/Author.test.js index 6bacee6..8f8e0d3 100644 --- a/src/components/Sidebar/Author/Author.test.js +++ b/src/components/Sidebar/Author/Author.test.js @@ -6,6 +6,7 @@ describe('Author', () => { const props = { author: { name: 'test', + photo: '/photo.jpg', bio: 'test' } }; diff --git a/src/components/Sidebar/Author/__snapshots__/Author.test.js.snap b/src/components/Sidebar/Author/__snapshots__/Author.test.js.snap index f8672d0..875b0f0 100644 --- a/src/components/Sidebar/Author/__snapshots__/Author.test.js.snap +++ b/src/components/Sidebar/Author/__snapshots__/Author.test.js.snap @@ -11,7 +11,7 @@ exports[`Author renders correctly 1`] = ` alt="test" className="author__photo" height="75" - src="file" + src="/photo.jpg" width="75" /> diff --git a/src/components/Sidebar/Sidebar.test.js b/src/components/Sidebar/Sidebar.test.js index e387bdc..f83d6a0 100644 --- a/src/components/Sidebar/Sidebar.test.js +++ b/src/components/Sidebar/Sidebar.test.js @@ -10,6 +10,7 @@ describe('Sidebar', () => { siteMetadata: { author: { name: 'name', + photo: '/photo.jpg', bio: 'bio', contacts: { email: '#', diff --git a/src/components/Sidebar/__snapshots__/Sidebar.test.js.snap b/src/components/Sidebar/__snapshots__/Sidebar.test.js.snap index 359ce73..827f553 100644 --- a/src/components/Sidebar/__snapshots__/Sidebar.test.js.snap +++ b/src/components/Sidebar/__snapshots__/Sidebar.test.js.snap @@ -17,7 +17,7 @@ exports[`Sidebar renders correctly 1`] = ` alt="name" className="author__photo" height="75" - src="file" + src="/photo.jpg" width="75" />