mock moment in CreationConfirm Spec

This commit is contained in:
Moriz Wahl 2021-12-06 09:22:07 +01:00
parent 9e5de56977
commit 61e7493260

View File

@ -40,6 +40,11 @@ const mocks = {
$toasted: { $toasted: {
error: toastedErrorMock, error: toastedErrorMock,
}, },
$moment: jest.fn((value) => {
return {
format: jest.fn((format) => value),
}
}),
} }
describe('CreationConfirm', () => { describe('CreationConfirm', () => {