src/libs/hocs/withReduxForm/__test__/withReduxForm.focusable.spec.js
import React from 'react';
import { mount } from 'enzyme';
import withReduxForm from '..';
function Input(props) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <input {...props} />;
}
const InputComponent = withReduxForm(Input);
describe('withReduxForm', () => {
it('should be focusable', () => {
const component = mount(<InputComponent />);
expect(component).toBeFocusable();
});
});