From 53414e11a947200cbc66a620455b80ffa2258fdb Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Mon, 17 May 2021 15:31:08 -0400 Subject: [PATCH] Update tests --- test/unit/components/studio-comments.test.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/unit/components/studio-comments.test.jsx b/test/unit/components/studio-comments.test.jsx index 1f628fc66..1985d370f 100644 --- a/test/unit/components/studio-comments.test.jsx +++ b/test/unit/components/studio-comments.test.jsx @@ -7,10 +7,14 @@ describe('Studio comments', () => { const loadComments = jest.fn(); const component = mountWithIntl( ); + expect(loadComments).not.toHaveBeenCalled(); + component.setProps({hasFetchedSession: true}); + component.update(); expect(loadComments).toHaveBeenCalled(); // When updated to have comments, load is not called again @@ -30,6 +34,7 @@ describe('Studio comments', () => { const resetComments = jest.fn(); const component = mountWithIntl( { mountWithIntl(