@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
17 lines (16 loc) • 734 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { h } from "@stencil/core";
import { renderFunctionalComponentToSpecPage } from "../../../utils/testing";
import KolFormFieldCounterFc from "../FormFieldCounter";
const currentLength = 5;
const currentLengthDebounced = 3;
const maxLength = 10;
describe('KolFormFieldCounterFc', () => {
it('should render correctly', async () => {
const page = await renderFunctionalComponentToSpecPage(() => (h(KolFormFieldCounterFc, { id: "test-id", currentLength: currentLength, currentLengthDebounced: currentLengthDebounced, maxLength: maxLength, maxLengthBehavior: 'hard' })));
expect(page.root).toMatchSnapshot();
});
});
//# sourceMappingURL=snapshot.test.js.map