contiago-toolbar
Version:
One of the options for outputting content from contiago xml-server
26 lines (22 loc) • 593 B
JavaScript
/**
* Testing the NotFoundPage
*/
import React from 'react';
import { shallow } from 'enzyme';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import NotFound from '../index';
describe('<NotFound />', () => {
it('should render the Page Not Found text', () => {
const renderedComponent = shallow(
<NotFound />
);
expect(renderedComponent.contains(
<H1>
<FormattedMessage
id="boilerplate.containers.NotFoundPage.header"
defaultMessage={'Page not found.'}
/>
</H1>)).toEqual(true);
});
});