diff --git a/__test__/EntityData.quo.ts b/__test__/EntityData.quo.ts index e28f66e19..b16ed251e 100644 --- a/__test__/EntityData.quo.ts +++ b/__test__/EntityData.quo.ts @@ -1,7 +1,8 @@ +import * as console from 'console'; import { autorun } from 'mobx'; import * as mst from 'mobx-state-tree'; -import { EntityData, IEntityData, LineData } from './EntityData'; +import { EntityData, IEntityData, LineData } from '../src/DatabaseServices/EntityData'; class E { @@ -78,8 +79,9 @@ function add(a, b) { lst: mst.types.array(mst.types.number) }) - .actions(self =>{ - return{ + .actions(self => + { + return { remove(a) { this.lst.remove(a) @@ -88,7 +90,7 @@ function add(a, b) }) let l = L.create({ lst: [1, 2, 3] }) - mst.onPatch(l, (p,rp) => + mst.onPatch(l, (p, rp) => { console.log(p); })