import {shallow} from 'enzyme'; import React from 'react'; import ActorTile from './ActorTile'; describe('', function () { it('renders without crashing ', function () { const wrapper = shallow(); wrapper.unmount(); }); it('simulate click', function () { const wrapper = shallow(); const func = jest.fn(); prepareViewBinding(func); wrapper.simulate('click'); expect(func).toBeCalledTimes(1); }); });