import React from 'react'; import _ from 'lodash'; import { mount, shallow } from 'enzyme'; import NameOfComponent from '../src/NameOfComponent'; describe('NameOfComponent Basic: ', () => { it('should verified that component is exits', () => { const wrapper = mount( ); expect(wrapper).toHaveLength(1); }); it('should verified that method name component works as as expected', () => { const wrapper = mount(shallow().get(0)); expect(wrapper.instance().methodName()).toEqual(someValue); }); });