diff --git a/test/index.spec.js b/test/index.spec.js index afdc2d9..df5f172 100644 --- a/test/index.spec.js +++ b/test/index.spec.js @@ -1,4 +1,6 @@ import assert from 'assert' +import { createStore } from 'redux' + import { ignoreActions, filterActions } from '../src/index' let reducer = (state, action) => { @@ -86,4 +88,13 @@ describe('filterActions()', () => { filteringReducer('testing', action), 'bar-state') }) + + it('should return an initial state when a redux store is created', () => { + let filteringReducer = filterActions(reducer, ['BAR']) + let store = createStore(filteringReducer) + + assert.equal( + store.getState(), + reducer(undefined, {})) + }) })