UNPKG

@uva-glass/component-library

Version:

React components UvA

17 lines (16 loc) 641 B
import { jsx as c } from "react/jsx-runtime"; import "../../index-dmBn99rF.js"; import { r as o, s as t } from "../../react.esm-DI5ilWeT.js"; import { Checkbox as h } from "./Checkbox.js"; describe("Checkbox", () => { it("should render", () => { o(/* @__PURE__ */ c(h, { id: "test-checkbox" })); const e = t.getByRole("checkbox"); expect(e).toBeInTheDocument(); }), it("should be checked if clicked", () => { o(/* @__PURE__ */ c(h, { id: "test-checkbox" })); const e = t.getByRole("checkbox"); expect(e).toBeInTheDocument(), e.click(), expect(e).toBeChecked(); }); }); //# sourceMappingURL=Checkbox.test.js.map