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