From fe252cd755046b25858a347315821093b16b2e67 Mon Sep 17 00:00:00 2001 From: Vincent Smedinga Date: Fri, 7 Jun 2024 11:49:27 +0200 Subject: [PATCH] Use changed Alert API --- packages/react/src/FormErrorList/FormErrorList.test.tsx | 4 ++-- packages/react/src/FormErrorList/FormErrorList.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react/src/FormErrorList/FormErrorList.test.tsx b/packages/react/src/FormErrorList/FormErrorList.test.tsx index 143d9faa6e..e1b16dd591 100644 --- a/packages/react/src/FormErrorList/FormErrorList.test.tsx +++ b/packages/react/src/FormErrorList/FormErrorList.test.tsx @@ -63,9 +63,9 @@ describe('Form error list', () => { }) it('renders a custom heading', () => { - render() + render() - const component = screen.getByRole('heading', { name: 'Testheading' }) + const component = screen.getByRole('heading', { name: 'Test heading' }) expect(component).toBeInTheDocument() }) diff --git a/packages/react/src/FormErrorList/FormErrorList.tsx b/packages/react/src/FormErrorList/FormErrorList.tsx index ce29f292e4..15dc5c3c8b 100644 --- a/packages/react/src/FormErrorList/FormErrorList.tsx +++ b/packages/react/src/FormErrorList/FormErrorList.tsx @@ -44,11 +44,11 @@ export const FormErrorList = forwardRef( {errors.map(({ id, label }) => (