prettier/tests/if
Christopher Chedeau 45796601c4 Fix last comment of an if test (#1042)
This one sucks.

The range of the `test` of `if (a /* comment */) {}` is only `a` and doesn't include the comment nor parenthesis. This means that we have no way to know if the comment is placed before or after the `)` unless you look at the actual source and strip all the whitespace/comments characters to see if it's a `)`...

This happened on the babel source code twice and many times in the fb codebase. I think we need to fix it unfortunately :(

Fixes #867
2017-04-10 11:05:10 -07:00
..
__snapshots__ Fix last comment of an if test (#1042) 2017-04-10 11:05:10 -07:00
else.js Separate `if` and `else` groups (fixes #616) (#1032) 2017-03-17 14:02:35 -07:00
if_comments.js Separate `if` and `else` groups (fixes #616) (#1032) 2017-03-17 14:02:35 -07:00
jsfmt.spec.js Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
trailing_comment.js Fix last comment of an if test (#1042) 2017-04-10 11:05:10 -07:00