|
@@ -102,8 +102,8 @@ const testAction = (action, args, state, expectedMutations, done) => {
|
|
action({dispatch, state}, ...args)
|
|
action({dispatch, state}, ...args)
|
|
|
|
|
|
// comprobar si no deberían haber sido despachadas mutaciones
|
|
// comprobar si no deberían haber sido despachadas mutaciones
|
|
- if (count === 0) {
|
|
|
|
- expect(expectedMutations.length).to.equal(0)
|
|
|
|
|
|
+ if (expectedMutations.length === 0) {
|
|
|
|
+ expect(count).to.equal(0)
|
|
done()
|
|
done()
|
|
}
|
|
}
|
|
}
|
|
}
|