import React from 'react';
import { shallow } from 'enzyme';
import { NavbarToggler } from '../';
describe('NavbarToggler', () => {
it('should render .navbar-toggler markup', () => {
const wrapper = shallow();
expect(wrapper.prop('aria-label')).toBe('Toggle navigation');
expect(wrapper.html()).toBe('');
});
it('should render custom tag', () => {
const wrapper = shallow();
expect(wrapper.html()).toBe('
');
});
it('should render children instead of navbar-toggler-icon ', () => {
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('navbar-toggler')).toBe(true);
});
});