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/33b62add007432cc4bb1d84e8d6e6af2 to your computer and use it in GitHub Desktop.
Save alaboudi/33b62add007432cc4bb1d84e8d6e6af2 to your computer and use it in GitHub Desktop.
Correct Reducer Initial State Test
import { someReducer } from './someReducer.js'
describe('someReducer', () => {
it('should return the correct initial state', () => {
expect(someReducer(undefined, {}).toEqual({
prop1: 'someValue1',
prop2: 'someValue2',
.....
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment