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