@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
19 lines (18 loc) • 800 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { h } from "@stencil/core";
import { renderFunctionalComponentToSpecPage } from "../../../../utils/testing";
import TextAreaFc from "../TextArea";
describe('TextAreaFc', () => {
it('should render and match snapshot', async () => {
const page = await renderFunctionalComponentToSpecPage(() => h(TextAreaFc, { id: "test", value: "test" }));
expect(page.root).toMatchSnapshot();
});
it('should contain a textarea tag', async () => {
var _a;
const page = await renderFunctionalComponentToSpecPage(() => h(TextAreaFc, { id: "test", value: "test" }));
expect((_a = page.root) === null || _a === void 0 ? void 0 : _a.tagName).toBe('TEXTAREA');
});
});
//# sourceMappingURL=snapshot.test.js.map