fix tests

This commit is contained in:
Moriz Wahl 2022-01-20 13:26:31 +01:00
parent 66a1377db2
commit af2ea3e809
2 changed files with 2 additions and 10 deletions

View File

@ -22,16 +22,7 @@ const toastedSuccessMock = jest.fn()
const mocks = {
$t: jest.fn((t) => t),
$moment: jest.fn(() => {
return {
format: jest.fn((m) => m),
subtract: jest.fn(() => {
return {
format: jest.fn((m) => m),
}
}),
}
}),
$d: jest.fn((d) => d),
$apollo: {
query: apolloMock,
mutate: apolloMutateMock,

View File

@ -107,6 +107,7 @@ describe('UserTable', () => {
const mocks = {
$t: jest.fn((t) => t),
$d: jest.fn((d) => d),
$moment: jest.fn(() => {
return {
format: jest.fn((m) => m),