Skip to content

Instantly share code, notes, and snippets.

@alaboudi
Last active August 5, 2018 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alaboudi/1dde05382592900898aa0a41588f82b4 to your computer and use it in GitHub Desktop.
Save alaboudi/1dde05382592900898aa0a41588f82b4 to your computer and use it in GitHub Desktop.
Incorrect Reducer Initial State Test
import { someReducer, SOME_REDUCER_INITIAL_STATE } from './someReducer.js'
describe('someReducer', () => {
it('should return the correct initial state', () => {
expect(someReducer(undefined, {}).toEqual(SOME_REDUCER_INITIAL_STATE);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment