Skip to content

Commit bda0fb8

Browse files
committed
fix: broken test
1 parent 32f48ee commit bda0fb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package/src/__tests__/offline-support/offline-feature.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ export const Generic = () => {
254254
const reactionsRows = await BetterSqlite.selectFromTable('reactions');
255255
const readsRows = await BetterSqlite.selectFromTable('reads');
256256

257+
console.log('ON UI', channelIdsOnUI);
257258
expect(channelIdsOnUI.length).toBe(channels.length);
258259
expect(channelsRows.length).toBe(channels.length);
259260
expect(messagesRows.length).toBe(allMessages.length);
@@ -381,9 +382,8 @@ export const Generic = () => {
381382
channels.push(newChannel);
382383
useMockedApis(chatClient, [getOrCreateChannelApi(newChannel)]);
383384

385+
await act(() => dispatchNotificationMessageNewEvent(chatClient, newChannel.channel));
384386
await waitFor(() => {
385-
act(() => dispatchNotificationMessageNewEvent(chatClient, newChannel.channel));
386-
387387
const channelIdsOnUI = screen
388388
.queryAllByLabelText('list-item')
389389
.map((node) => node._fiber.pendingProps.testID);

0 commit comments

Comments
 (0)