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