Skip to content

Commit

Permalink
fix broken useMessage.test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNi245 committed Jul 31, 2024
1 parent 947fc9a commit 2940412
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { getMockedTldContext } from '../../context/testHelper/getMockedTldContex
import { getEmptyContact } from '../../interfaces/utils';
import { DM3Configuration } from '../../widget';
import { useMessage } from './useMessage';
import { stringify } from '@dm3-org/dm3-lib-shared';

describe('useMessage hook test cases', () => {
const CONTACT_NAME = 'user.dm3.eth';
Expand Down Expand Up @@ -789,8 +790,8 @@ describe('useMessage hook test cases', () => {
result.current.messages['alice.eth'].length > 0,
);

console.log(stringify(result.current.messages['alice.eth']));
expect(result.current.contactIsLoading('alice.eth')).toBe(false);
expect(result.current.messages['alice.eth'].length).toBe(3);

expect(syncAcknowledgmentMock).toBeCalledTimes(1);
expect(syncAcknowledgmentMock).toBeCalledWith(
Expand Down

0 comments on commit 2940412

Please sign in to comment.