nexxtway/react-rainbow

View on GitHub
src/components/MenuDivider/__test__/menuDivider.spec.js

Summary

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

describe('<MenuDivider />', () => {
    it('should set the prop role as separator in li element', () => {
        const component = mount(<MenuDivider />);
        expect(component.find('li').prop('role')).toBe('separator');
    });
});