File size: 515 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
/**
* Testing the NotFoundPage
*/
import React from 'react';
import { render } from 'react-testing-library';
import { IntlProvider } from 'react-intl';
import NotFound from '../index';
import messages from '../messages';
describe('<NotFound />', () => {
it('should render the Page Not Found text', () => {
const { queryByText } = render(
<IntlProvider locale="en">
<NotFound />
</IntlProvider>,
);
expect(queryByText(messages.header.defaultMessage)).not.toBeNull();
});
});
|