mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
linting
This commit is contained in:
parent
051e7212f2
commit
569a89ce2d
@ -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!')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user