1 | import { InputGroupText } from '..';
|
2 | import {
|
3 | testForCustomClass,
|
4 | testForCustomTag,
|
5 | testForDefaultClass,
|
6 | testForDefaultTag,
|
7 | } from '../testUtils';
|
8 |
|
9 | describe('InputGroupText', () => {
|
10 | it('should render with "input-group-text" class', () => {
|
11 | testForDefaultClass(InputGroupText, 'input-group-text');
|
12 | });
|
13 |
|
14 | it('should render additional classes', () => {
|
15 | testForCustomClass(InputGroupText);
|
16 | });
|
17 |
|
18 | it('should render with "span" tag by default', () => {
|
19 | testForDefaultTag(InputGroupText, 'span');
|
20 | });
|
21 |
|
22 | it('should render custom tag', () => {
|
23 | testForCustomTag(InputGroupText);
|
24 | });
|
25 | });
|