diff --git a/test/core/fixtures/generation/edgecase/return-with-retainlines-and-compact-option/actual.js b/test/core/fixtures/generation/edgecase/return-with-retainlines-and-compact-option/actual.js new file mode 100644 index 0000000000..2a0e91f010 --- /dev/null +++ b/test/core/fixtures/generation/edgecase/return-with-retainlines-and-compact-option/actual.js @@ -0,0 +1,6 @@ +function foo(l) { + return ( + // hi + l + ); +} diff --git a/test/core/fixtures/generation/edgecase/return-with-retainlines-and-compact-option/expected.js b/test/core/fixtures/generation/edgecase/return-with-retainlines-and-compact-option/expected.js new file mode 100644 index 0000000000..042f71356d --- /dev/null +++ b/test/core/fixtures/generation/edgecase/return-with-retainlines-and-compact-option/expected.js @@ -0,0 +1,4 @@ +function foo(l){ +return ( + +l);} diff --git a/test/core/fixtures/generation/edgecase/return-with-retainlines-and-compact-option/options.json b/test/core/fixtures/generation/edgecase/return-with-retainlines-and-compact-option/options.json new file mode 100644 index 0000000000..87138b0d7e --- /dev/null +++ b/test/core/fixtures/generation/edgecase/return-with-retainlines-and-compact-option/options.json @@ -0,0 +1,4 @@ +{ + "retainLines": true, + "compact": true +}