fixed test for App.vue with token

This commit is contained in:
ogerly 2022-05-05 09:50:44 +02:00
parent b446b5fdd3
commit ded8afe36b

View File

@ -44,5 +44,15 @@ describe('App', () => {
it('has a component AuthLayoutGDD', () => {
expect(wrapper.findComponent({ name: 'AuthTemplate' }).exists()).toBe(true)
})
// describe('with token', () => {
// beforeEach(() => {
// mocks.$store.state.token = 'login-token'
// })
// it('has a component DashboardLayout', () => {
// expect(wrapper.findComponent({ name: 'DashboardTemplate' }).exists()).toBe(true)
// })
// })
})
})