fixed infostatistic tests

This commit is contained in:
Ulf Gebhardt 2023-01-03 14:41:00 +01:00
parent bf2e8ca754
commit a1a12e68d1
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -1,10 +1,14 @@
import { mount } from '@vue/test-utils'
import { mount, RouterLinkStub } from '@vue/test-utils'
import InfoStatistic from './InfoStatistic'
import { toastErrorSpy } from '../../test/testSetup'
import { listContributionLinks, communityStatistics, searchAdminUsers } from '@/graphql/queries'
const localVue = global.localVue
const stubs = {
RouterLink: RouterLinkStub,
}
const apolloQueryMock = jest
.fn()
.mockResolvedValueOnce({
@ -70,7 +74,7 @@ describe('InfoStatistic', () => {
}
const Wrapper = () => {
return mount(InfoStatistic, { localVue, mocks })
return mount(InfoStatistic, { localVue, mocks, stubs })
}
describe('mount', () => {