diff --git a/src/discussions/posts/post-editor/PostEditor.test.jsx b/src/discussions/posts/post-editor/PostEditor.test.jsx index 8f2f82c2..db9a67f8 100644 --- a/src/discussions/posts/post-editor/PostEditor.test.jsx +++ b/src/discussions/posts/post-editor/PostEditor.test.jsx @@ -141,6 +141,16 @@ describe('PostEditor', () => { } }, ); + test('selectThread is not called while creating a new post', async () => { + const mockSelectThread = jest.fn(); + jest.mock('../data/selectors', () => ({ + selectThread: mockSelectThread, + })); + await renderComponent(); + expect(mockSelectThread) + .not + .toHaveBeenCalled(); + }); }); describe('cohorting', () => {