From 5c804eac85ec79166c8d1efff4a997c0e58e2b42 Mon Sep 17 00:00:00 2001 From: Zak Burke Date: Wed, 4 Dec 2024 23:35:26 -0500 Subject: [PATCH] test ResetPasswordNotAvailableScreen --- .../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'); + }); +});