add moment jest.fn()

This commit is contained in:
ogerly 2022-01-06 11:11:44 +01:00
parent eef82dd16b
commit c7dbff9486

View File

@ -35,6 +35,16 @@ const mocks = {
$toasted: {
error: toastErrorMock,
},
$moment: jest.fn(() => {
return {
format: jest.fn((m) => m),
subtract: jest.fn(() => {
return {
format: jest.fn((m) => m),
}
}),
}
}),
}
describe('Creation', () => {