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,9 +58,7 @@ const mocks = {
query: apolloQueryMock, query: apolloQueryMock,
}, },
$toasted: { $toasted: {
global: { error: toastedErrorMock,
error: toastedErrorMock,
},
}, },
} }

View File

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