Files
cartlog-admin/node_modules/reactstrap/esm/__tests__/NavbarToggler.spec.js
2026-01-01 15:25:19 +05:30

16 lines
638 B
JavaScript

import { NavbarToggler } from '..';
import { testForChildrenInComponent, testForCustomClass, testForCustomTag, testForDefaultClass } from '../testUtils';
describe('NavbarToggler', function () {
it('should have .navbar-toggler class', function () {
testForDefaultClass(NavbarToggler, 'navbar-toggler');
});
it('should render custom tag', function () {
testForCustomTag(NavbarToggler);
});
it('should render children instead of navbar-toggler-icon ', function () {
testForChildrenInComponent(NavbarToggler);
});
it('should pass additional classNames', function () {
testForCustomClass(NavbarToggler);
});
});