imp: unskip test, add new test

This commit is contained in:
Géry Debongnie
2019-04-08 23:27:57 +02:00
parent cde85269fd
commit bf4cbaea33
2 changed files with 36 additions and 4 deletions
+4 -1
View File
@@ -27,11 +27,14 @@ export class Store extends EventBus {
super();
this.debug = options.debug || false;
this.state = Object.assign({}, config.state);
const self = this;
this.mstate = magify({
raw: this.state,
key: "state",
parent: this,
onDirty: () => (this._isDirty = true)
onDirty: function() {
self._isDirty = true;
}
});
this.actions = config.actions;
this.mutations = config.mutations;