UNPKG

668 BJavaScriptView Raw
1import React from 'react';
2import { render, screen } from '@testing-library/react';
3import { NavbarBrand } from '..';
4import {
5 testForChildrenInComponent,
6 testForCustomClass,
7 testForDefaultClass,
8 testForDefaultTag,
9} from '../testUtils';
10
11describe('NavbarBrand', () => {
12 it('should render .navbar-brand markup', () => {
13 testForDefaultClass(NavbarBrand, 'navbar-brand');
14 });
15
16 it('should render custom tag', () => {
17 testForDefaultTag(NavbarBrand, 'a');
18 });
19
20 it('sholid render children', () => {
21 testForChildrenInComponent(NavbarBrand);
22 });
23
24 it('should pass additional classNames', () => {
25 testForCustomClass(NavbarBrand);
26 });
27});