import { describe, it, expect } from "vitest" import { Checkbox } from "./checkbox" describe("Checkbox", () => { it("returns empty string if no params", () => { expect(new Checkbox({}, "foo").renderWrapper).toBe("") }) it("returns attributes and data attributes", () => { expect(new Checkbox({ foo: "bar" }, "foo", { id: "1", "data-foo": "bar" }).renderWrapper).toBe(``) }) it("returns attributes and data attributes with custom data attributes", () => { expect(new Checkbox({ foo: "bar" }, "foo", { id: "1", data: { foo: { baz: "qux", quux: "corge" } } }).renderWrapper).toBe(``) }) })