quickbuild
Version:
A mature, feature-complete application generator with an emphasis on speed
22 lines (18 loc) • 515 B
JavaScript
/**
* 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();
});
});