jsfmt.spec.js.snap 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`comment.js 1`] = `
  3. function foo() {
  4. return {
  5. // this comment causes the problem
  6. bar: baz() + 1
  7. };
  8. }
  9. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10. function foo() {
  11. return {
  12. // this comment causes the problem
  13. bar: baz() + 1
  14. };
  15. }
  16. `;
  17. exports[`long-value.js 1`] = `
  18. const x = {
  19. "ABC": "12345678901234567890123456789012345678901234567890123456789012345678901234567890"
  20. };
  21. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22. const x = {
  23. ABC:
  24. "12345678901234567890123456789012345678901234567890123456789012345678901234567890"
  25. };
  26. `;
  27. exports[`test.js 1`] = `
  28. const a = classnames({
  29. "some-prop": this.state.longLongLongLongLongLongLongLongLongTooLongProp
  30. });
  31. const b = classnames({
  32. "some-prop": this.state.longLongLongLongLongLongLongLongLongTooLongProp === true
  33. });
  34. const c = classnames({
  35. "some-prop": [ "foo", "bar", "foo", "bar", "foo", "bar", "foo", "bar", "foo" ]
  36. });
  37. const d = classnames({
  38. "some-prop": () => {}
  39. });
  40. const e = classnames({
  41. "some-prop": function bar() {}
  42. });
  43. const f = classnames({
  44. "some-prop": { foo: "bar", bar: "foo", foo: "bar", bar: "foo", foo: "bar" }
  45. });
  46. const g = classnames({
  47. "some-prop": longLongLongLongLongLongLongLongLongLongLongLongLongTooLongVar || 1337
  48. });
  49. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  50. const a = classnames({
  51. "some-prop": this.state.longLongLongLongLongLongLongLongLongTooLongProp
  52. });
  53. const b = classnames({
  54. "some-prop":
  55. this.state.longLongLongLongLongLongLongLongLongTooLongProp === true
  56. });
  57. const c = classnames({
  58. "some-prop": ["foo", "bar", "foo", "bar", "foo", "bar", "foo", "bar", "foo"]
  59. });
  60. const d = classnames({
  61. "some-prop": () => {}
  62. });
  63. const e = classnames({
  64. "some-prop": function bar() {}
  65. });
  66. const f = classnames({
  67. "some-prop": { foo: "bar", bar: "foo", foo: "bar", bar: "foo", foo: "bar" }
  68. });
  69. const g = classnames({
  70. "some-prop":
  71. longLongLongLongLongLongLongLongLongLongLongLongLongTooLongVar || 1337
  72. });
  73. `;