update(types)!: Rename FlowActions/FlowGetters etc. to Actions, Getters

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent a62a891243
commit e64f6b7bc6
8 changed files with 56 additions and 56 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
import { useVueFlow } from '~/composables'
import { FlowState, FlowStore } from '~/types'
import { State, FlowStore } from '~/types'
import useState from '~/store/state'
describe('test store state', () => {
let store: FlowStore
@@ -13,8 +13,8 @@ describe('test store state', () => {
it('has default initial state', () => {
const initial = useState()
Object.keys(store.state).forEach((state) => {
const storedState = store[<keyof FlowState>state]
const initialVal = initial[<keyof FlowState>state]
const storedState = store[<keyof State>state]
const initialVal = initial[<keyof State>state]
if (state === 'initialized') return expect(storedState).to.be.true
expect(JSON.stringify(storedState)).to.eq(JSON.stringify(initialVal))
})