get the tests running

This commit is contained in:
Moriz Wahl 2022-01-10 13:45:38 +01:00
parent 814f9e18dd
commit 5c3c22780a
2 changed files with 10 additions and 3 deletions

View File

@ -58,10 +58,8 @@ const mocks = {
query: apolloQueryMock,
},
$toasted: {
global: {
error: toastedErrorMock,
},
},
}
const propsData = {

View File

@ -3,6 +3,9 @@ import UserTable from './UserTable.vue'
const localVue = global.localVue
const apolloQueryMock = jest.fn()
apolloQueryMock.mockResolvedValue()
describe('UserTable', () => {
let wrapper
@ -114,6 +117,12 @@ describe('UserTable', () => {
}),
}
}),
$apollo: {
query: apolloQueryMock,
},
$store: {
commit: jest.fn(),
},
}
const Wrapper = (propsData) => {