Skip to content

Commit 473cf4e

Browse files
committed
fix: lint
1 parent 62d0f03 commit 473cf4e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/views/RoomView/List/hooks/useMessages.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jest.mock('../../../../lib/methods/helpers', () => {
4040
};
4141
});
4242

43-
const mockDbGet = jest.mocked(database.active.get);
43+
const mockDbGet = database.active.get as unknown as jest.Mock;
4444
const mockGetThreadById = jest.mocked(getThreadById);
4545
const mockGetMessageById = jest.mocked(getMessageById);
4646

@@ -54,7 +54,6 @@ const baseArgs = {
5454

5555
const msg = (overrides: Partial<TAnyMessageModel> & { id: string }): TAnyMessageModel =>
5656
({
57-
id: overrides.id,
5857
ts: new Date('2024-01-01'),
5958
...overrides
6059
} as TAnyMessageModel);

0 commit comments

Comments
 (0)