react-universally
Version:
A starter kit for universal react applications.
16 lines (12 loc) • 410 B
JavaScript
/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import { shallow } from 'enzyme';
import Error404 from '../index';
describe('<Error404 />', () => {
test('renders', () => {
const staticContext = {};
const wrapper = shallow(<Error404 staticContext={staticContext} />);
expect(wrapper).toMatchSnapshot();
expect(staticContext.missed).toBeTruthy();
});
});