clean up dashboard layout unit tests file

This commit is contained in:
mahula 2022-12-08 11:31:55 +01:00
parent c3e19758c3
commit 0afd7fcd6a

View File

@ -2,15 +2,12 @@ import { mount, RouterLinkStub } from '@vue/test-utils'
import flushPromises from 'flush-promises'
import DashboardLayout from './DashboardLayout'
import { toastErrorSpy } from '@test/testSetup'
// import { async } from 'regenerator-runtime'
// import { nextTick } from 'vue/types/umd'
jest.useFakeTimers()
const localVue = global.localVue
const storeDispatchMock = jest.fn()
//const mockStoreDispach = jest.fn()
const apolloQueryMock = jest.fn()
const apolloMutationMock = jest.fn()
const routerPushMock = jest.fn()
@ -48,7 +45,6 @@ const mocks = {
lastName: 'Example',
token: 'valid-token',
},
// commit: storeCommitMock,
},
$i18n: {
locale: 'en',
@ -77,11 +73,6 @@ describe('DashboardLayout', () => {
},
},
})
// apolloMutationMock.mockResolvedValue({
// data: {
// logout: 'success',
// },
// })
wrapper = Wrapper()
})