Skip to content

Commit

Permalink
test BadRequestScreen (#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
zburke authored Dec 5, 2024
1 parent d01bb48 commit a99341c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/BadRequestScreen/BadRequestScreen.test.js
Original file line number Diff line number Diff line change
@@ -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(<BadRequestScreen />);

screen.getByText('stripes-core.front.error.header');
screen.getByText(/stripes-core.front.error.general.message/);
});
});


0 comments on commit a99341c

Please sign in to comment.