This commit is contained in:
Claus-Peter Huebner 2024-04-10 21:02:22 +02:00
parent 051e7212f2
commit 569a89ce2d

View File

@ -1,4 +1,4 @@
import { mount, RouterLinkStub } from '@vue/test-utils'
import { mount } from '@vue/test-utils'
import UserSearch from './UserSearch'
import { toastErrorSpy } from '../../test/testSetup'
import { authenticateGmsUserSearch } from '@/graphql/queries'
@ -7,10 +7,6 @@ const localVue = global.localVue
window.scrollTo = jest.fn()
const stubs = {
RouterLink: RouterLinkStub,
}
const apolloQueryMock = jest
.fn()
.mockResolvedValueOnce({
@ -22,7 +18,6 @@ const apolloQueryMock = jest
})
.mockResolvedValue('default')
describe('UserSearch', () => {
let wrapper
@ -71,9 +66,7 @@ describe('UserSearch', () => {
})
it('toasts an error message', () => {
expect(toastErrorSpy).toBeCalledWith(
'authenticateGmsUserSearch failed!',
)
expect(toastErrorSpy).toBeCalledWith('authenticateGmsUserSearch failed!')
})
})
})