From bb91ab711bb7a9a7bd393d61eda1d13bd972502c Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 13 Dec 2021 15:14:08 +0100 Subject: [PATCH] fix(tests): check if state initialized Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- cypress/integration/1-store/setState.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cypress/integration/1-store/setState.spec.ts b/cypress/integration/1-store/setState.spec.ts index b163fd8a..5c83ea89 100644 --- a/cypress/integration/1-store/setState.spec.ts +++ b/cypress/integration/1-store/setState.spec.ts @@ -15,6 +15,7 @@ describe('test store state', () => { Object.keys(store.state).forEach((state) => { const storedState = store[state] const initialVal = initial[state] + if (state === 'initialized') return expect(storedState).to.be.true expect(JSON.stringify(storedState)).to.eq(JSON.stringify(initialVal)) }) })