From ed56fecd049ae78d061ed5a4b40cd571ae954c0b Mon Sep 17 00:00:00 2001 From: Amjad Masad Date: Fri, 8 May 2015 15:33:00 -0700 Subject: [PATCH] [Flow] Add failing tests for printing comments w/ type alias --- .../core/fixtures/transformation/flow/type-comments/actual.js | 4 ++++ .../fixtures/transformation/flow/type-comments/expected.js | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 test/core/fixtures/transformation/flow/type-comments/actual.js create mode 100644 test/core/fixtures/transformation/flow/type-comments/expected.js diff --git a/test/core/fixtures/transformation/flow/type-comments/actual.js b/test/core/fixtures/transformation/flow/type-comments/actual.js new file mode 100644 index 0000000000..1d117b15d1 --- /dev/null +++ b/test/core/fixtures/transformation/flow/type-comments/actual.js @@ -0,0 +1,4 @@ +var x = 1; +// comment 1 +type FunWithComments = number +var y = 2; diff --git a/test/core/fixtures/transformation/flow/type-comments/expected.js b/test/core/fixtures/transformation/flow/type-comments/expected.js new file mode 100644 index 0000000000..fc9059820d --- /dev/null +++ b/test/core/fixtures/transformation/flow/type-comments/expected.js @@ -0,0 +1,3 @@ +var x = 1; +// comment 1 +var y = 2;