diff --git a/src/components/input/__tests__/Textarea.test.js b/src/components/input/__tests__/Textarea.test.js index ae2fe208..2e6b7030 100644 --- a/src/components/input/__tests__/Textarea.test.js +++ b/src/components/input/__tests__/Textarea.test.js @@ -152,6 +152,15 @@ describe('Textarea', () => { expect(mockSetProps.mock.calls).toHaveLength(0); }); + test("don't increment n_submit if submit_on_enter is false", () => { + mockSetProps = jest.fn(); + const { + container: {firstChild: ta} + } = render(