blocklancer.git
Version:
Freelancer React Job Board using Bot and Blockchain Technology
16 lines (15 loc) • 361 B
JavaScript
import React from 'react';
import { shallow } from 'enzyme';
import HomePage from '../index';
it('it should call history.push', () => {
const setRouteLeaveHook = jest.fn();
const wrapper = shallow(
<HomePage
params={{
id: 25,
router: setRouteLeaveHook,
}}
/>,
);
expect(wrapper).toMatchSnapshot();
});