prettier/tests/method-chain
Ika 4af3dd4b07
test: improve snapshots (#5521)
- before
  ```
  ${input}${"~".repeat(printWidth)}
  ${output}
  ```
- after
  ```
  ===options===
  ${options}
  ${" ".repeat(printWidth)}| printWidth
  ====input====
  ${input}
  ===output====
  ${output}
  =============
  ```
2018-11-25 16:21:14 +08:00
..
__snapshots__ test: improve snapshots (#5521) 2018-11-25 16:21:14 +08:00
bracket_0.js Do not break on [0] (#1441) 2017-05-01 14:41:34 -07:00
break-last-call.js Reimplement MemberExpression printing (#469) 2017-01-31 12:32:42 -08:00
break-last-member.js Do not inline member expressions as part of assignments (#1256) 2017-04-13 20:09:00 -04:00
break-multiple.js Print 3 or more chained calls on multiple lines (#2673) 2017-08-27 09:44:44 -07:00
comment.js Check if the next group has comments (#2040) 2017-06-07 15:20:11 -07:00
computed-merge.js Make the factory detection handle multiple elements (#3112) 2017-10-27 09:05:40 -07:00
computed.js fix(method-chain): break on non-literal computed member expression, fixes #2075 (#2087) 2017-06-10 07:47:22 -07:00
conditional.js Break closing paren of ConditionalExpression in member chains 2017-09-10 15:00:52 -06:00
d3.js Short rule should only apply to the first identifier (#4575) 2018-05-27 21:52:42 -03:00
first_long.js Add `this` for Member factory whitelist and remove softline (#782) 2017-02-23 09:41:44 -05:00
inline_merge.js Inline _ or $ in the root of a method chain (#4621) 2018-06-01 12:51:06 -03:00
jsfmt.spec.js Change run_spec to have explicit parser list (#3356) 2017-11-30 03:31:52 -03:00
logical.js Break parens for binaries in member expression (#2958) 2017-10-22 17:29:13 -06:00
multiple-members.js fix: support sequential CallExpressions in member chains (#2990) 2017-10-08 12:12:17 +11:00
short-names.js Only break chains with short names if inside ExpressionStatement (#4505) 2018-05-18 21:44:15 -03:00
square_0.js Consider [0] to be part of the first member group 2017-11-02 14:42:13 -02:00
test.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
this.js Make all the member expressions but the last one part of the first group (#589) 2017-02-03 16:18:54 -05:00