update(test): remove pinia from tests

* update tests to succeed with new "store"

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-04 15:42:18 +01:00
parent 3c9840cc50
commit 55e738f6bf
2 changed files with 4 additions and 8 deletions
+2 -4
View File
@@ -5,15 +5,14 @@ describe('test store state', () => {
let store: FlowStore
beforeEach(() => (store = useStore()))
afterEach(() => store.$dispose())
it('has any initial state', () => {
expect(store.$state).to.exist
expect(store.state).to.exist
})
it('has default initial state', () => {
const initial = initialState()
Object.keys(store.$state).forEach((state) => {
Object.keys(store.state).forEach((state) => {
const storedState = store[<keyof FlowState>state]
const initialVal = initial[<keyof FlowState>state]
expect(JSON.stringify(storedState)).to.eq(JSON.stringify(initialVal))
@@ -32,7 +31,6 @@ describe('test store state', () => {
zoomOnScroll: false,
})
expect(store.zoomOnScroll).to.eq(false)
store.$dispose()
})
it('gets custom node types', () => {