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