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

16 lines
631 B
JavaScript

import { InputGroupText } from '..';
import { testForCustomClass, testForCustomTag, testForDefaultClass, testForDefaultTag } from '../testUtils';
describe('InputGroupText', function () {
it('should render with "input-group-text" class', function () {
testForDefaultClass(InputGroupText, 'input-group-text');
});
it('should render additional classes', function () {
testForCustomClass(InputGroupText);
});
it('should render with "span" tag by default', function () {
testForDefaultTag(InputGroupText, 'span');
});
it('should render custom tag', function () {
testForCustomTag(InputGroupText);
});
});