fix test for UserSearch

This commit is contained in:
Moriz Wahl 2021-12-23 14:24:58 +01:00
parent c544a13ab0
commit 3fce16b170

View File

@ -26,6 +26,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('UserSearch', () => {