mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add mock in tests
This commit is contained in:
parent
18efa93faa
commit
fbd0d65b35
@ -53,16 +53,7 @@ const apolloQueryMock = jest.fn().mockResolvedValue({
|
|||||||
const toastedErrorMock = jest.fn()
|
const toastedErrorMock = jest.fn()
|
||||||
|
|
||||||
const mocks = {
|
const mocks = {
|
||||||
$moment: jest.fn(() => {
|
$d: jest.fn((t) => t),
|
||||||
return {
|
|
||||||
format: jest.fn((m) => m),
|
|
||||||
subtract: jest.fn(() => {
|
|
||||||
return {
|
|
||||||
format: jest.fn((m) => m),
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
$t: jest.fn((t) => t),
|
$t: jest.fn((t) => t),
|
||||||
$apollo: {
|
$apollo: {
|
||||||
query: apolloQueryMock,
|
query: apolloQueryMock,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user