Skip to content

Commit 3818929

Browse files
committed
Fix test
1 parent 95b803f commit 3818929

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/core/components/forms/textAreaRichText/textAreaRichText.test.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ describe('<TextAreaRichText /> component', () => {
4848
const onChange = jest.fn();
4949
render(createTestComponent({ onChange }));
5050
await userEvent.type(screen.getByRole('textbox'), 'test');
51-
// userEvent.type adds a new line character (\n\n) before tests causing the onChange callback
52-
// to be called with an empty paragraph before the typed text
53-
expect(onChange).toHaveBeenLastCalledWith('<p></p><p>test</p>');
51+
expect(onChange).toHaveBeenLastCalledWith('<p>test</p>');
5452
});
5553

5654
it('defaults to empty string instead of empty paragraph when input is empty', async () => {

0 commit comments

Comments
 (0)