Skip to content

Instantly share code, notes, and snippets.

@Tin-Nguyen
Created April 14, 2017 02:56
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 Tin-Nguyen/0662160c833474124cecb14b29eac798 to your computer and use it in GitHub Desktop.
Save Tin-Nguyen/0662160c833474124cecb14b29eac798 to your computer and use it in GitHub Desktop.
it('should set token', () => {
const nextState = reducer(undefined, {
type: USER_SET_TOKEN,
token: 'my-token'
})
// immutable.js state output
expect(nextState.toJS()).to.be.eql({
token: 'my-token'
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment