UNPKG

cra-template-rb

Version:

The official React Boilerplate template for Create React App

20 lines (17 loc) 543 B
import { configureAppStore } from '../configureStore'; describe('configureStore', () => { it('should return a store with injected enhancers', () => { const store = configureAppStore(); expect(store).toEqual( expect.objectContaining({ runSaga: expect.any(Function), injectedReducers: expect.any(Object), injectedSagas: expect.any(Object), }), ); }); it('should return an empty store', () => { const store = configureAppStore(); expect(store.getState()).toBeUndefined(); }); });