@uva-glass/component-library
Version:
React components UvA
18 lines (17 loc) • 704 B
JavaScript
import { jsx as c } from "react/jsx-runtime";
import "../../index-DYPpFe2R.js";
import { r as o, s as t } from "../../react.esm-DdELhthz.js";
import { u as s } from "../../index-C_1Z-Fok.js";
import { Checkbox as r } from "./Checkbox.js";
describe("Checkbox", () => {
it("should render", () => {
o(/* @__PURE__ */ c(r, { id: "test-checkbox" }));
const e = t.getByRole("checkbox");
expect(e).toBeInTheDocument();
}), it("should be checked if clicked", async () => {
o(/* @__PURE__ */ c(r, { id: "test-checkbox" }));
const e = t.getByRole("checkbox");
expect(e).toBeInTheDocument(), await s.click(e), expect(e).toBeChecked();
});
});
//# sourceMappingURL=Checkbox.test.js.map