From 96b1ddaaec69af76dd54e7d9e592ca3197d3c2a6 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Thu, 14 Sep 2017 21:21:53 +0300 Subject: [PATCH] Update tests --- src/containers/ListingPage/ListingPage.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containers/ListingPage/ListingPage.test.js b/src/containers/ListingPage/ListingPage.test.js index edcceabc..e2663488 100644 --- a/src/containers/ListingPage/ListingPage.test.js +++ b/src/containers/ListingPage/ListingPage.test.js @@ -52,7 +52,7 @@ describe('ListingPage', () => { return showListing(id)(dispatch, null, sdk).then(data => { expect(data).toEqual(response); - expect(show.mock.calls).toEqual([[{ id, include: ['author', 'images'] }]]); + expect(show.mock.calls).toEqual([[{ id, include: ['author', 'author.profileImage', 'images'] }]]); expect(dispatch.mock.calls).toEqual([ [showListingRequest(id)], [expect.anything()], // fetchCurrentUser() call @@ -76,7 +76,7 @@ describe('ListingPage', () => { }, e => { expect(e).toEqual(error); - expect(show.mock.calls).toEqual([[{ id, include: ['author', 'images'] }]]); + expect(show.mock.calls).toEqual([[{ id, include: ['author', 'author.profileImage', 'images'] }]]); expect(dispatch.mock.calls).toEqual([ [showListingRequest(id)], [expect.anything()], // fetchCurrentUser() call