@@ -102,8 +102,8 @@ const testAction = (action, args, state, expectedMutations, done) => {
action({dispatch, state}, ...args)
// check if no mutations should have been dispatched
- if (count === 0) {
- expect(expectedMutations.length).to.equal(0)
+ if (expectedMutations.length === 0) {
+ expect(count).to.equal(0)
done()
}
// comprobar si no deberían haber sido despachadas mutaciones
@@ -100,8 +100,8 @@ const testAction = (action, args, state, expectedMutations, done) => {
@@ -96,8 +96,8 @@ const testAction = (action, args, state, expectedMutations, done) => {
// 检查是否没有 mutation 被 dispatch