mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
clean up dashboard layout unit tests file
This commit is contained in:
parent
c3e19758c3
commit
0afd7fcd6a
@ -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()
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user