diff --git a/test/core/fixtures/transformation/react/honor-custom-jsx-comment-if-jsx-pragma-option-set/actual.js b/test/core/fixtures/transformation/react/honor-custom-jsx-comment-if-jsx-pragma-option-set/actual.js new file mode 100644 index 0000000000..acb0d0ca1b --- /dev/null +++ b/test/core/fixtures/transformation/react/honor-custom-jsx-comment-if-jsx-pragma-option-set/actual.js @@ -0,0 +1,8 @@ +/** @jsx dom */ + +; + +var profile =
+ +

{[user.firstName, user.lastName].join(" ")}

+
; diff --git a/test/core/fixtures/transformation/react/honor-custom-jsx-comment-if-jsx-pragma-option-set/expected.js b/test/core/fixtures/transformation/react/honor-custom-jsx-comment-if-jsx-pragma-option-set/expected.js new file mode 100644 index 0000000000..1febfa3188 --- /dev/null +++ b/test/core/fixtures/transformation/react/honor-custom-jsx-comment-if-jsx-pragma-option-set/expected.js @@ -0,0 +1,14 @@ +/** @jsx dom */ + +dom(Foo, null); + +var profile = dom( + "div", + null, + dom("img", { src: "avatar.png", className: "profile" }), + dom( + "h3", + null, + [user.firstName, user.lastName].join(" ") + ) +); diff --git a/test/core/fixtures/transformation/react/honor-custom-jsx-comment-if-jsx-pragma-option-set/options.json b/test/core/fixtures/transformation/react/honor-custom-jsx-comment-if-jsx-pragma-option-set/options.json new file mode 100644 index 0000000000..f06ff74164 --- /dev/null +++ b/test/core/fixtures/transformation/react/honor-custom-jsx-comment-if-jsx-pragma-option-set/options.json @@ -0,0 +1,3 @@ +{ + "jsxPragma": "foo.bar" +} diff --git a/test/core/fixtures/transformation/react/honor-custom-jsx-pragma-option/actual.js b/test/core/fixtures/transformation/react/honor-custom-jsx-pragma-option/actual.js new file mode 100644 index 0000000000..5b144eb3ee --- /dev/null +++ b/test/core/fixtures/transformation/react/honor-custom-jsx-pragma-option/actual.js @@ -0,0 +1,6 @@ +; + +var profile =
+ +

{[user.firstName, user.lastName].join(" ")}

+
; diff --git a/test/core/fixtures/transformation/react/honor-custom-jsx-pragma-option/expected.js b/test/core/fixtures/transformation/react/honor-custom-jsx-pragma-option/expected.js new file mode 100644 index 0000000000..26eb142fac --- /dev/null +++ b/test/core/fixtures/transformation/react/honor-custom-jsx-pragma-option/expected.js @@ -0,0 +1,12 @@ +dom(Foo, null); + +var profile = dom( + "div", + null, + dom("img", { src: "avatar.png", className: "profile" }), + dom( + "h3", + null, + [user.firstName, user.lastName].join(" ") + ) +); diff --git a/test/core/fixtures/transformation/react/honor-custom-jsx-pragma-option/options.json b/test/core/fixtures/transformation/react/honor-custom-jsx-pragma-option/options.json new file mode 100644 index 0000000000..223d2362fc --- /dev/null +++ b/test/core/fixtures/transformation/react/honor-custom-jsx-pragma-option/options.json @@ -0,0 +1,3 @@ +{ + "jsxPragma": "dom" +}