From 465c8eb857b4fbc7e7120e273cfbf3abfc58f09e Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Thu, 5 Apr 2018 15:35:01 +0300 Subject: [PATCH] Fix tests --- src/containers/SearchPage/SearchPage.js | 1 + src/containers/SearchPage/SearchPage.test.js | 1 + .../__snapshots__/SearchPage.test.js.snap | 97 ++++++++----------- 3 files changed, 45 insertions(+), 54 deletions(-) diff --git a/src/containers/SearchPage/SearchPage.js b/src/containers/SearchPage/SearchPage.js index e960ddd1..ccd92167 100644 --- a/src/containers/SearchPage/SearchPage.js +++ b/src/containers/SearchPage/SearchPage.js @@ -293,6 +293,7 @@ const { array, bool, func, oneOf, object, shape, string } = PropTypes; SearchPageComponent.propTypes = { listings: array, mapListings: array, + onActivateListing: func.isRequired, onManageDisableScrolling: func.isRequired, onSearchMapListings: func.isRequired, pagination: propTypes.pagination, diff --git a/src/containers/SearchPage/SearchPage.test.js b/src/containers/SearchPage/SearchPage.test.js index aa38bfc9..9b7a35e4 100644 --- a/src/containers/SearchPage/SearchPage.test.js +++ b/src/containers/SearchPage/SearchPage.test.js @@ -36,6 +36,7 @@ describe('SearchPageComponent', () => { currentUserHasListings: false, intl: fakeIntl, isAuthenticated: false, + onActivateListing: noop, onLogout: noop, onManageDisableScrolling: noop, onSearchMapListings: noop, diff --git a/src/containers/SearchPage/__snapshots__/SearchPage.test.js.snap b/src/containers/SearchPage/__snapshots__/SearchPage.test.js.snap index 2c6d9c8f..df9d474c 100644 --- a/src/containers/SearchPage/__snapshots__/SearchPage.test.js.snap +++ b/src/containers/SearchPage/__snapshots__/SearchPage.test.js.snap @@ -22,10 +22,29 @@ exports[`SearchPageComponent matches snapshot 1`] = ` currentSearchParams={Object {}} />
-
- - -
- -
-
+ } + showAsModalMaxWidth={768} + urlQueryParams={Object {}} + />