From 7fc1c5cf03ea86213668378861e023bad65f8a18 Mon Sep 17 00:00:00 2001 From: Jure Triglav <juretriglav@gmail.com> Date: Sat, 26 Jan 2019 01:07:06 +1300 Subject: [PATCH] test(client): remove configureStore test --- .../client/test/store/configureStore.test.js | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 packages/client/test/store/configureStore.test.js diff --git a/packages/client/test/store/configureStore.test.js b/packages/client/test/store/configureStore.test.js deleted file mode 100644 index c3c06020c..000000000 --- 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) - }) -}) -- GitLab