UNPKG

622 BJavaScriptView Raw
1import { NavbarToggler } from '..';
2import {
3 testForChildrenInComponent,
4 testForCustomClass,
5 testForCustomTag,
6 testForDefaultClass,
7} from '../testUtils';
8
9describe('NavbarToggler', () => {
10 it('should have .navbar-toggler class', () => {
11 testForDefaultClass(NavbarToggler, 'navbar-toggler');
12 });
13
14 it('should render custom tag', () => {
15 testForCustomTag(NavbarToggler);
16 });
17
18 it('should render children instead of navbar-toggler-icon ', () => {
19 testForChildrenInComponent(NavbarToggler);
20 });
21
22 it('should pass additional classNames', () => {
23 testForCustomClass(NavbarToggler);
24 });
25});