mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
get the tests running
This commit is contained in:
parent
814f9e18dd
commit
5c3c22780a
@ -58,9 +58,7 @@ const mocks = {
|
|||||||
query: apolloQueryMock,
|
query: apolloQueryMock,
|
||||||
},
|
},
|
||||||
$toasted: {
|
$toasted: {
|
||||||
global: {
|
error: toastedErrorMock,
|
||||||
error: toastedErrorMock,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user