From d01bb489311b5e9b350faea310b2afb9c8fb3f44 Mon Sep 17 00:00:00 2001 From: Zak Burke Date: Thu, 5 Dec 2024 10:35:43 -0500 Subject: [PATCH] test ResetPasswordNotAvailableScreen (#1573) --- .../ResetPasswordNotAvailableScreen.test.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/components/ResetPasswordNotAvailableScreen/ResetPasswordNotAvailableScreen.test.js diff --git a/src/components/ResetPasswordNotAvailableScreen/ResetPasswordNotAvailableScreen.test.js b/src/components/ResetPasswordNotAvailableScreen/ResetPasswordNotAvailableScreen.test.js new file mode 100644 index 000000000..fd2211747 --- /dev/null +++ b/src/components/ResetPasswordNotAvailableScreen/ResetPasswordNotAvailableScreen.test.js @@ -0,0 +1,14 @@ +import { render, screen } from '@folio/jest-config-stripes/testing-library/react'; + +import BadRequestScreen from './ResetPasswordNotAvailableScreen'; + +jest.mock('../../Pluggable', () => (props) => props.children); + +describe('ResetPasswordNotAvailableScreen', () => { + it('renders expected message', () => { + render(); + + screen.getByText('stripes-core.front.error.header'); + screen.getByText('stripes-core.front.error.setPassword.message'); + }); +});