Skip to content

Commit

Permalink
Consolidates use of configureStore in test
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-briscoe committed Oct 12, 2022
1 parent aaaa34b commit 1fb3f67
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ const store = mockStore({
});

// case when common.locale is not populated
const mockEmptyStore = configureStore([thunk]);
const emptyStore = mockEmptyStore({});
const emptyStore = mockStore({});

// case when common.locale is populated with invalid locale
const mockInvalidStore = configureStore([thunk]);
const invalidStore = mockInvalidStore({ common: { locale: 'invalid_locale' } });
const invalidStore = mockStore({ common: { locale: 'invalid_locale' } });

test('renders with default props', () => {
render(
Expand Down

0 comments on commit 1fb3f67

Please sign in to comment.