Created
December 19, 2019 14:12
-
-
Save taverasmisael/8b0973b9753330aa6a1bd5397fbf447e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import reduce from './reducer' | |
describe ('REDUCER', () => { | |
it ('should set the right state on "DO_REQUEST"', () => { | |
const newState = reducer(undefined, {type: 'DO_REQUEST'}) | |
// The `toMatchSnapshot` matcher does not receive any parameters | |
// In the next section we will see why | |
expect (newState).toMatchSnapshot() | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment