prettier/tests/switch
Christopher Chedeau 58194e5375 Fix empty lines with comments between switch cases (#1709)
The function isPreviousLineEmpty comment doesn't skip comments (on purpose, see comment above that method :P) so the detection is messed up. Turns out, it's easier to just use isNextLineEmpty like everywhere else.

Fixes #1708
2017-05-24 13:20:05 -07:00
..
__snapshots__ Fix empty lines with comments between switch cases (#1709) 2017-05-24 13:20:05 -07:00
comments.js Fix empty lines with comments between switch cases (#1709) 2017-05-24 13:20:05 -07:00
empty_lines.js Fix isPreviousLineEmpry on Windows (#1263) 2017-04-14 16:02:19 -07:00
empty_statement.js Do not indent for switch case with `;` (#1687) 2017-05-23 13:58:43 -07:00
empty_switch.js Empty switch should not have an empty line (#384) 2017-01-22 12:40:46 -08:00
jsfmt.spec.js Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00