|
@@ -138,7 +138,7 @@ describe('actions', () => {
|
|
|
|
|
|
actions.getAllProducts({ commit, state })
|
|
actions.getAllProducts({ commit, state })
|
|
|
|
|
|
- expect(dispatch.args).to.deep.equal([
|
|
|
|
|
|
+ expect(commit.args).to.deep.equal([
|
|
[ 'REQUEST_PRODUCTS' ],
|
|
[ 'REQUEST_PRODUCTS' ],
|
|
[ 'RECEIVE_PRODUCTS', { /* mocked response */ } ]
|
|
[ 'RECEIVE_PRODUCTS', { /* mocked response */ } ]
|
|
])
|
|
])
|