import React from 'react'; import { shallow } from 'enzyme'; import { NavItem } from '../'; describe('NavItem', () => { it('should render .nav-item markup', () => { const wrapper = shallow(); expect(wrapper.html()).toBe(''); }); it('should render custom tag', () => { const wrapper = shallow(); expect(wrapper.html()).toBe(''); }); it('sholid render children', () => { const wrapper = shallow(Children); expect(wrapper.html()).toBe(''); }); it('should pass additional classNames', () => { const wrapper = shallow(); expect(wrapper.hasClass('extra')).toBe(true); expect(wrapper.hasClass('nav-item')).toBe(true); }); it('should render active class', () => { const wrapper = shallow(); expect(wrapper.hasClass('active')).toBe(true); }); });