fix(tests): check if state initialized
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -15,6 +15,7 @@ describe('test store state', () => {
|
|||||||
Object.keys(store.state).forEach((state) => {
|
Object.keys(store.state).forEach((state) => {
|
||||||
const storedState = store[<keyof FlowState>state]
|
const storedState = store[<keyof FlowState>state]
|
||||||
const initialVal = initial[<keyof FlowState>state]
|
const initialVal = initial[<keyof FlowState>state]
|
||||||
|
if (state === 'initialized') return expect(storedState).to.be.true
|
||||||
expect(JSON.stringify(storedState)).to.eq(JSON.stringify(initialVal))
|
expect(JSON.stringify(storedState)).to.eq(JSON.stringify(initialVal))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user