From a721f0013daed757e654066b8a815b88ec2e5962 Mon Sep 17 00:00:00 2001 From: Zak Burke Date: Wed, 4 Dec 2024 23:28:31 -0500 Subject: [PATCH] test BadRequestScreen --- .../BadRequestScreen/BadRequestScreen.test.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/components/BadRequestScreen/BadRequestScreen.test.js diff --git a/src/components/BadRequestScreen/BadRequestScreen.test.js b/src/components/BadRequestScreen/BadRequestScreen.test.js new file mode 100644 index 000000000..bb97cceec --- /dev/null +++ b/src/components/BadRequestScreen/BadRequestScreen.test.js @@ -0,0 +1,16 @@ +import { render, screen } from '@folio/jest-config-stripes/testing-library/react'; + +import BadRequestScreen from './BadRequestScreen'; + +jest.mock('../../Pluggable', () => (props) => props.children); + +describe('BadRequestScreen', () => { + it('renders expected message', () => { + render(); + + screen.getByText('stripes-core.front.error.header') + screen.getByText('stripes-core.front.error.general.message') + }); +}); + +