Skip to content

Commit 4e7cb4c

Browse files
test: added wrapper
1 parent e69b8bd commit 4e7cb4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/meteor/client/sidebar/hooks/useUnreadDisplay.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,21 +198,21 @@ it('should return correct unread data for [Thread and thread user mention]', asy
198198
});
199199

200200
it('should not highlight unread if hideUnreadStatus is enabled', async () => {
201-
const { result } = renderHook(() => useUnreadDisplay(hideUnreadStatus));
201+
const { result } = renderHook(() => useUnreadDisplay(hideUnreadStatus), { wrapper });
202202

203203
expect(result.current.highlightUnread).toBe(false);
204204
expect(result.current.showUnread).toBe(true);
205205
});
206206

207207
it('should not show unread if hideUnreadStatus and hideMentionStatus is enabled', async () => {
208-
const { result } = renderHook(() => useUnreadDisplay(hideUnreadAndMention));
208+
const { result } = renderHook(() => useUnreadDisplay(hideUnreadAndMention), { wrapper });
209209

210210
expect(result.current.highlightUnread).toBe(false);
211211
expect(result.current.showUnread).toBe(false);
212212
});
213213

214214
it("should not show unread if there isn't any unread message", async () => {
215-
const { result } = renderHook(() => useUnreadDisplay(noUnread));
215+
const { result } = renderHook(() => useUnreadDisplay(noUnread), { wrapper });
216216

217217
expect(result.current.highlightUnread).toBe(false);
218218
expect(result.current.showUnread).toBe(false);

0 commit comments

Comments
 (0)