diff --git a/test/core/fixtures/transformation/react/jsx-with-retainlines-option/actual.js b/test/core/fixtures/transformation/react/jsx-with-retainlines-option/actual.js new file mode 100644 index 0000000000..1addddeb15 --- /dev/null +++ b/test/core/fixtures/transformation/react/jsx-with-retainlines-option/actual.js @@ -0,0 +1 @@ +var div =
test
; diff --git a/test/core/fixtures/transformation/react/jsx-with-retainlines-option/expected.js b/test/core/fixtures/transformation/react/jsx-with-retainlines-option/expected.js new file mode 100644 index 0000000000..f3210cb915 --- /dev/null +++ b/test/core/fixtures/transformation/react/jsx-with-retainlines-option/expected.js @@ -0,0 +1 @@ +var div = React.createElement("div", null, "test"); diff --git a/test/core/fixtures/transformation/react/jsx-with-retainlines-option/options.json b/test/core/fixtures/transformation/react/jsx-with-retainlines-option/options.json new file mode 100644 index 0000000000..97925bbcb6 --- /dev/null +++ b/test/core/fixtures/transformation/react/jsx-with-retainlines-option/options.json @@ -0,0 +1,3 @@ +{ + "retainLines": true +} diff --git a/test/core/fixtures/transformation/react/jsx-without-retainlines-option/actual.js b/test/core/fixtures/transformation/react/jsx-without-retainlines-option/actual.js new file mode 100644 index 0000000000..1addddeb15 --- /dev/null +++ b/test/core/fixtures/transformation/react/jsx-without-retainlines-option/actual.js @@ -0,0 +1 @@ +var div =
test
; diff --git a/test/core/fixtures/transformation/react/jsx-without-retainlines-option/expected.js b/test/core/fixtures/transformation/react/jsx-without-retainlines-option/expected.js new file mode 100644 index 0000000000..9a82f14c77 --- /dev/null +++ b/test/core/fixtures/transformation/react/jsx-without-retainlines-option/expected.js @@ -0,0 +1,5 @@ +var div = React.createElement( + "div", + null, + "test" +);