diff --git a/packages/client/test/store/configureStore.test.js b/packages/client/test/store/configureStore.test.js deleted file mode 100644 index c3c06020c52bcf539a4944ed3c7942f4bcec08e6..0000000000000000000000000000000000000000 --- a/packages/client/test/store/configureStore.test.js +++ /dev/null @@ -1,39 +0,0 @@ -describe('configureStore', () => { - afterEach(() => jest.resetModules()) - - it('allows initialization of store with custom initialState, reducers and middleware', () => { - global.PUBSWEET_COMPONENTS = [] - - const configureStore = require('../../src/store/configureStore') - - const customHistory = {} - const customInitialState = { collections: ['initial'] } - - const customReducers = { - test: (state, action) => ({ - ...state, - fired: action.fired, - }), - } - - const customMiddlewares = [ - () => next => action => { - action.fired = true - return next(action) - }, - ] - - const store = configureStore( - customHistory, - customInitialState, - customReducers, - customMiddlewares, - ) - - expect(store.getState().collections[0]).toBe( - customInitialState.collections[0], - ) - store.dispatch({ type: 'TEST', fired: false }) - expect(store.getState().test.fired).toBe(true) - }) -})