is-valid-redux-reducer
v1.0.3
Published
Checks if the reducer is valid
Downloads
2,922
Readme
isValidReduxReducer
Checks if the reducer is valid
Installation
npm install --save is-valid-redux-reducer
Usage
import isValidReduxReducer from 'is-valid-redux-reducer'
expect(isValidReduxReducer({})).to.be.false
expect(isValidReduxReducer((state, action) => state)).to.be.false
expect(isValidReduxReducer((state, action) => ({}))).to.be.false
expect(isValidReduxReducer((state = {}, action) => state)).to.be.true
License
MIT