mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Co-authored-by: Michael H <git@riskymh.dev> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
11 lines
462 B
TypeScript
11 lines
462 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" });
|
|
});
|
|
|