import React from 'react'; import InputTel from './index'; const mockOnChange = jest.fn(); const mockOnBlur = jest.fn(); const data = { error: '', label: 'label', onChange: mockOnChange, onBlur: mockOnBlur, value: '', defaultCountry: 'gb', name: 'inputTel', hideLabel: false, }; describe('InputTel', () => { const defaultElement = ; let wrapper; beforeEach(() => { wrapper = shallow(defaultElement); }); it('should render correctly', () => { expect(wrapper).toMatchSnapshot(); }); });