Fix db mock

This commit is contained in:
Diego Mello 2024-04-03 17:13:49 -03:00
parent a077dcbf3d
commit 990516a8e2
1 changed files with 5 additions and 1 deletions

View File

@ -62,7 +62,11 @@ jest.mock('./app/lib/methods/search', () => ({
search: () => []
}));
jest.mock('./app/lib/database', () => jest.fn(() => null));
jest.mock('./app/lib/database', () => ({
active: {
get: jest.fn()
}
}));
jest.mock('./app/containers/MessageComposer/components/EmojiKeyboard', () => jest.fn(() => null));