File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -198,21 +198,21 @@ it('should return correct unread data for [Thread and thread user mention]', asy
198198});
199199
200200it('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
207207it('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
214214it("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);
You can’t perform that action at this time.
0 commit comments