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(); }); });
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), }), ); expect(store.getState().router).toBeDefined(); }); it('should return a store with router in state', () => { const store = configureAppStore(history); expect(store.getState().router).toBeDefined(); }); });
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(); }); });
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), }), ); expect(store.getState().router).toBeDefined(); }); it('should return a store with router in state', () => { const store = configureAppStore(history); expect(store.getState().router).toBeDefined(); }); });