Skip to content

Commit

Permalink
Merge branch 'master' into test-IfInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
zburke authored Dec 5, 2024
2 parents aaadb05 + a99341c commit 8498e73
Show file tree
Hide file tree
Showing 2 changed files with 30 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/);
});
});


Original file line number Diff line number Diff line change
@@ -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(<BadRequestScreen />);

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

0 comments on commit 8498e73

Please sign in to comment.