jsfmt.spec.js.snap 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`break.js 1`] = `
  3. const f = (argument1, argument2, argument3) =>
  4. (doSomethingWithArgument(argument1), doSomethingWithArgument(argument2),argument1);
  5. (function(){
  6. return aLongIdentifierName, aLongIdentifierName, aLongIdentifierName, aLongIdentifierName;
  7. });
  8. aLongIdentifierName, aLongIdentifierName, aLongIdentifierName, aLongIdentifierName;
  9. a.then(() => (aLongIdentifierName, aLongIdentifierName, aLongIdentifierName, aLongIdentifierName));
  10. for (aLongIdentifierName = 0, aLongIdentifierName = 0, aLongIdentifierName = 0, aLongIdentifierName = 0; test; update) {}
  11. (a = b ? c : function() { return 0; }),
  12. (a = b ? c : function() { return 0; }),
  13. (a = b ? c : function() { return 0; }),
  14. (a = b ? c : function() { return 0; }),
  15. (a = b ? c : function() { return 0; });
  16. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17. const f = (argument1, argument2, argument3) => (
  18. doSomethingWithArgument(argument1),
  19. doSomethingWithArgument(argument2),
  20. argument1
  21. );
  22. (function() {
  23. return (
  24. aLongIdentifierName,
  25. aLongIdentifierName,
  26. aLongIdentifierName,
  27. aLongIdentifierName
  28. );
  29. });
  30. aLongIdentifierName,
  31. aLongIdentifierName,
  32. aLongIdentifierName,
  33. aLongIdentifierName;
  34. a.then(
  35. () => (
  36. aLongIdentifierName,
  37. aLongIdentifierName,
  38. aLongIdentifierName,
  39. aLongIdentifierName
  40. )
  41. );
  42. for (
  43. aLongIdentifierName = 0,
  44. aLongIdentifierName = 0,
  45. aLongIdentifierName = 0,
  46. aLongIdentifierName = 0;
  47. test;
  48. update
  49. ) {}
  50. (a = b
  51. ? c
  52. : function() {
  53. return 0;
  54. }),
  55. (a = b
  56. ? c
  57. : function() {
  58. return 0;
  59. }),
  60. (a = b
  61. ? c
  62. : function() {
  63. return 0;
  64. }),
  65. (a = b
  66. ? c
  67. : function() {
  68. return 0;
  69. }),
  70. (a = b
  71. ? c
  72. : function() {
  73. return 0;
  74. });
  75. `;