@@ -8,9 +8,9 @@ It use [redux-mock-store](https://github.com/arnaudbenard/redux-mock-store) to m
88## Supported Assertion Frameworks/Libraries:
99- [ expect] ( https://github.com/mjackson/expect )
1010- [ chai] ( https://github.com/chaijs/chai )
11- - [ In Progress ] [ expect.js] ( https://github.com/Automattic/expect.js )
12- - [ In Progress ] [ should] ( https://github.com/shouldjs/should.js )
13- - [ In Progress ] [ jasmine] ( https://github.com/jasmine/jasmine ) and [ jest] ( https://github.com/facebook/jest )
11+ - [ expect.js] ( https://github.com/Automattic/expect.js ) [ In Progress ]
12+ - [ should] ( https://github.com/shouldjs/should.js ) [ In Progress ]
13+ - [ jasmine] ( https://github.com/jasmine/jasmine ) and [ jest] ( https://github.com/facebook/jest ) [ In Progress ]
1414
1515If you have not found assertion framework/library that you are using - you still can use [ pure assertion function] ( ) .
1616
@@ -158,7 +158,9 @@ registerAssertions();
158158#### .to.dispatch.actions(assert.isDispatching)
159159
160160> ` expect(action).to.dispatch.actions(expectedActions, callback) `
161+
161162> ` action.should.dispatch.actions(expectedActions, callback) `
163+
162164> ` assert.isDispatching(action, expectedActions, callback) `
163165
164166Asserts that when given ` action ` is dispatched it will dispatch ` expectedActions ` . ` action ` can be plain object (action) or function (action creator). ` expectedActions ` can be can be plain object (action) or function (action creator) or array of objects/functions.
@@ -180,7 +182,9 @@ assert.isDispatching(
180182#### .with.state(assert.isDispatchingWithState)
181183
182184> ` expect(action).with.state(state).to.dispatch.actions(expectedActions, callback) `
185+
183186> ` action.should.with.state(state).dispatch.actions(expectedActions, callback) `
187+
184188> ` assert.isDispatchingWithState(action, expectedActions, state, callback) `
185189
186190Asserts that store initialised with ` state ` before ` action ` is dispatched.
@@ -243,4 +247,4 @@ var registerAssertions = require('redux-actions-assertions/jasmine').registerAss
243247
244248// registration
245249registerAssertions ();
246- ```
250+ ```
0 commit comments