From b5afedd567ebb86b9cc60fcd11c5a40feac7c9c7 Mon Sep 17 00:00:00 2001 From: "Andrew Revinsky (DART)" Date: Fri, 30 Apr 2021 02:36:10 +0300 Subject: [PATCH] #3: Implement a second page, Restaurants List - fixed a failing test (updated a new prop) --- src/features/address/addressSlice.test.js | 1 + src/ui/pages/RestaurantListPage/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/address/addressSlice.test.js b/src/features/address/addressSlice.test.js index d79b225..16631df 100644 --- a/src/features/address/addressSlice.test.js +++ b/src/features/address/addressSlice.test.js @@ -22,6 +22,7 @@ describe(`src/features/address/addressSlice.js`, () => { status: 'idle', value: null, error: null, + restaurantsArr: null, restaurants: expect.objectContaining({ ids: expect.anything(), entities: expect.anything() diff --git a/src/ui/pages/RestaurantListPage/index.js b/src/ui/pages/RestaurantListPage/index.js index 8cc09ed..5ac01cc 100644 --- a/src/ui/pages/RestaurantListPage/index.js +++ b/src/ui/pages/RestaurantListPage/index.js @@ -14,7 +14,7 @@ import { LessLargeTextDiv, Span } from '../../elements/textElements'; import { RoundedButton } from '../../elements/formElements'; import BootstrapTable from 'react-bootstrap-table-next'; import 'react-bootstrap-table-next/dist/react-bootstrap-table2.min.css'; - +a export const RestaurantListPage = () => { const dispatch = useDispatch();