diff --git a/cypress/integration/1-store/setState.spec.ts b/cypress/integration/1-store/setState.spec.ts index 12cb395b..b163fd8a 100644 --- a/cypress/integration/1-store/setState.spec.ts +++ b/cypress/integration/1-store/setState.spec.ts @@ -1,6 +1,6 @@ import { useVueFlow } from '~/composables' import { FlowState, FlowStore } from '~/types' -import { initialState } from '~/store' +import useState from '~/store/state' describe('test store state', () => { let store: FlowStore @@ -11,7 +11,7 @@ describe('test store state', () => { }) it('has default initial state', () => { - const initial = initialState() + const initial = useState() Object.keys(store.state).forEach((state) => { const storedState = store[state] const initialVal = initial[state]