Skip to content

Instantly share code, notes, and snippets.

@Tin-Nguyen
Created April 14, 2017 03:03
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/3ac7f88c27dabc8f4dd844948cdbc760 to your computer and use it in GitHub Desktop.
Save Tin-Nguyen/3ac7f88c27dabc8f4dd844948cdbc760 to your computer and use it in GitHub Desktop.
it('should dispatch action', (done) => {
const getState = {}
const action = { type: 'ADD_TODO' }
const expectedActions = [action]
const store = mockStore(getState, expectedActions, done)
store.dispatch(action)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment