Skip to content

Commit

Permalink
test BadRequestScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
zburke committed Dec 5, 2024
1 parent 4868456 commit a721f00
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')

Check failure on line 11 in src/components/BadRequestScreen/BadRequestScreen.test.js

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

Missing semicolon
screen.getByText('stripes-core.front.error.general.message')

Check failure on line 12 in src/components/BadRequestScreen/BadRequestScreen.test.js

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

Missing semicolon
});
});


0 comments on commit a721f00

Please sign in to comment.