Add test for namespaced attribute (#19855)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-08-15 17:16:14 +08:00
1 parent 6ec8503550
commit acb755b040
3 files changed
+21 -1

No files matched your search

@@ -1,6 +1,23 @@
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`jsx-namespaced-name.js format 1`] = `
exports[`namespaced-attribute.js format 1`] = `
====================================options=====================================
parsers: ["babel", "typescript", "flow"]
printWidth: 80 (default) |
=====================================input======================================
<foo namespaced:attribte />;
<foo namespaced:attribte="1" />;
<foo namespaced:attribte={1} />;
=====================================output=====================================
<foo namespaced:attribte />;
<foo namespaced:attribte="1" />;
<foo namespaced:attribte={1} />;
================================================================================
`;
exports[`namespaced-name.js format 1`] = `
====================================options=====================================
parsers: ["babel", "typescript", "flow"]
printWidth: 80 (default) |
@@ -0,0 +1,3 @@
<foo namespaced:attribte />;
<foo namespaced:attribte="1" />;
<foo namespaced:attribte={1} />;