import React from 'react';
import { shallow } from 'enzyme';
import { NavbarText } from '..';
describe('NavbarText', () => {
it('should render .navbar-text markup', () => {
const wrapper = shallow();
expect(wrapper.html()).toBe('');
});
it('should render custom tag', () => {
const wrapper = shallow();
expect(wrapper.html()).toBe('
');
});
it('should render children', () => {
const wrapper = shallow(Children);
expect(wrapper.html()).toBe('Children');
});
it('should pass additional classNames', () => {
const wrapper = shallow();
expect(wrapper.hasClass('extra')).toBe(true);
expect(wrapper.hasClass('navbar-text')).toBe(true);
});
});