From a686d62528060fbd0723dbffe034ad191695c597 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Fri, 1 Apr 2022 00:59:11 +0200 Subject: [PATCH] fix(tests): initial state tests --- tests/cypress/integration/1-store/setState.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/cypress/integration/1-store/setState.spec.ts b/tests/cypress/integration/1-store/setState.spec.ts index f46d1632..0b4196a3 100644 --- a/tests/cypress/integration/1-store/setState.spec.ts +++ b/tests/cypress/integration/1-store/setState.spec.ts @@ -1,17 +1,17 @@ -import { useVueFlow, State, FlowStore } from '@braks/vue-flow' +import { useVueFlow, State, Store } from '@braks/vue-flow' describe('test store state', () => { - let store: FlowStore + let store: Store const { store: initial } = useVueFlow() beforeEach(() => ({ store } = useVueFlow())) it('has any initial state', () => { - expect(store.state).to.exist + expect(store).to.exist }) it('has default initial state', () => { - Object.keys(store.state).forEach((state) => { + Object.keys(store).forEach((state) => { const storedState = store[state] const initialVal = initial[state] if (state === 'initialized') return expect(storedState).to.be.true