nexxtway/react-rainbow

View on GitHub
src/components/Button/__test__/button.focusable.spec.js

Summary

Maintainability
A
1 hr
Test Coverage
import React from 'react';
import { mount } from 'enzyme';
import Button from '..';

describe('<Button />', () => {
    it('should be focusable', () => {
        const component = mount(<Button label="button label" />);
        expect(component).toBeFocusable();
    });
});