Files
bun.sh/test/cli/run/jsx-namespaced-attributes.test.ts
Jarred Sumner ff8c2dcbc4 Bump WebKit again (#19943)
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2025-05-27 17:55:43 -07:00

10 lines
461 B
TypeScript

import { expect, it } from "bun:test";
import { nsExample1, nsExample2, nsExample3, nsExample4 } from "../../snippets/jsx-attributes.tsx";
it("parses namespaced attributes correctly", () => {
expect(nsExample1.props).toEqual({ "ns:bar": "baz", "tag": true });
expect(nsExample2.props).toEqual({ "ns:bar42": "baz", "tag": false });
expect(nsExample3.props).toEqual({ "ns:bar42bar": "baz" });
expect(nsExample4.props).toEqual({ "ns42:bar": "baz" });
});