We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00e9b9f commit 43aa405Copy full SHA for 43aa405
test/index.test.tsx
@@ -46,6 +46,15 @@ describe("Basic functionality", () => {
46
const { container } = render(<Input value={"test"} onChange={onChange} />);
47
expect(container.firstChild).toHaveAttribute("value", "test");
48
});
49
+
50
+ it("should provide support for data attributes", async () => {
51
+ const Input = styled("input");
52
+ const onChange = jest.fn();
53
+ const { container } = render(
54
+ <Input value={"test"} onChange={onChange} data-section="Login Form" />
55
+ );
56
+ expect(container.firstChild).toHaveAttribute("data-section", "Login Form");
57
+ });
58
59
60
describe("supports variants and compound variants", () => {
0 commit comments