From 8c316faf307c693faa111dd33e07202bd32bb729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Lu=C4=8Div=C5=88=C3=A1k?= Date: Wed, 7 Oct 2020 15:01:15 +0200 Subject: [PATCH] add a test --- .../comment/comment-in-parenthesis-statement.expected.js | 5 +++++ test/comment/comment-in-parenthesis-statement.js | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 test/comment/comment-in-parenthesis-statement.expected.js create mode 100644 test/comment/comment-in-parenthesis-statement.js diff --git a/test/comment/comment-in-parenthesis-statement.expected.js b/test/comment/comment-in-parenthesis-statement.expected.js new file mode 100644 index 00000000..84945649 --- /dev/null +++ b/test/comment/comment-in-parenthesis-statement.expected.js @@ -0,0 +1,5 @@ +function foo(a, b, c) { + // lorem + // ipsum + return a >= b && a <= c || a === 42 || a === 666; +} \ No newline at end of file diff --git a/test/comment/comment-in-parenthesis-statement.js b/test/comment/comment-in-parenthesis-statement.js new file mode 100644 index 00000000..a22fa0ea --- /dev/null +++ b/test/comment/comment-in-parenthesis-statement.js @@ -0,0 +1,9 @@ +function foo(a, b, c) { + return ( + (a >= b && a <= c) + + // lorem + // ipsum + || a === 42 || a === 666 + ); +} \ No newline at end of file