1 | import React from 'react';
|
2 | import { render, screen } from '@testing-library/react';
|
3 | import { NavbarBrand } from '..';
|
4 | import {
|
5 | testForChildrenInComponent,
|
6 | testForCustomClass,
|
7 | testForDefaultClass,
|
8 | testForDefaultTag,
|
9 | } from '../testUtils';
|
10 |
|
11 | describe('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 | });
|