nexxtway/react-rainbow

View on GitHub
src/libs/hocs/withReduxForm/__test__/withReduxForm.focusable.spec.js

Summary

Maintainability
A
1 hr
Test Coverage
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();
    });
});