jsfmt.spec.js.snap 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`comments.js 1`] = `
  3. class A // comment 1
  4. // comment 2
  5. extends B {}
  6. class A extends B // comment1
  7. // comment2
  8. // comment3
  9. {}
  10. class A /* a */ extends B {}
  11. class A extends B /* a */ {}
  12. class A extends /* a */ B {}
  13. (class A // comment 1
  14. // comment 2
  15. extends B {});
  16. (class A extends B // comment1
  17. // comment2
  18. // comment3
  19. {});
  20. (class A /* a */ extends B {});
  21. (class A extends B /* a */ {});
  22. (class A extends /* a */ B {});
  23. class x {
  24. focus() // do nothing
  25. {
  26. // do nothing
  27. }
  28. }
  29. class X {
  30. TEMPLATE =
  31. // tab index is needed so we can focus, which is needed for keyboard events
  32. '<div class="ag-large-text" tabindex="0">' +
  33. '<div class="ag-large-textarea"></div>' +
  34. '</div>';
  35. }
  36. export class SnapshotLogger {
  37. constructor(
  38. retentionPeriod: number = 5 * 60 * 1000, // retain past five minutes
  39. snapshotInterval: number = 30 * 1000, // snapshot no more than every 30s
  40. ) {
  41. }
  42. }
  43. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  44. class A // comment 1
  45. // comment 2
  46. extends B {}
  47. class A extends B // comment1
  48. // comment2
  49. // comment3
  50. {
  51. }
  52. class A /* a */ extends B {}
  53. class A extends B /* a */ {
  54. }
  55. class A /* a */ extends B {}
  56. (class A // comment 1
  57. // comment 2
  58. extends B {});
  59. (class A extends B // comment1
  60. // comment2
  61. // comment3
  62. {
  63. });
  64. (class A /* a */ extends B {});
  65. (class A extends B /* a */ {
  66. });
  67. (class A /* a */ extends B {});
  68. class x {
  69. focus() // do nothing
  70. {
  71. // do nothing
  72. }
  73. }
  74. class X {
  75. TEMPLATE =
  76. // tab index is needed so we can focus, which is needed for keyboard events
  77. '<div class="ag-large-text" tabindex="0">' +
  78. '<div class="ag-large-textarea"></div>' +
  79. "</div>";
  80. }
  81. export class SnapshotLogger {
  82. constructor(
  83. retentionPeriod: number = 5 * 60 * 1000, // retain past five minutes
  84. snapshotInterval: number = 30 * 1000 // snapshot no more than every 30s
  85. ) {}
  86. }
  87. `;