mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
10 lines
461 B
TypeScript
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" });
|
|
});
|