jsfmt.spec.js.snap 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`basic-handlebars.hbs 1`] = `
  3. <script id="entry-template" type="text/x-handlebars-template">
  4. <div class="entry">
  5. <h1>{{title}}</h1>
  6. <div class="body">
  7. {{body}}
  8. </div>
  9. </div>
  10. </script>
  11. <div class="{{hello}} {{world}}"></div>
  12. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13. <script id="entry-template" type="text/x-handlebars-template">
  14. <div class="entry">
  15. <h1>
  16. {{title}}
  17. </h1>
  18. <div class="body">
  19. {{body}}
  20. </div>
  21. </div>
  22. </script>
  23. <div class="{{hello}} {{world}}"></div>
  24. `;
  25. exports[`comments.hbs 1`] = `
  26. <div class="entry">
  27. {{! This comment will not be in the output }}
  28. {{!-- This comment as }} and will not be in the output --}}
  29. <!-- This comment will be in the output -->
  30. </div>
  31. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  32. <div class="entry">
  33. {{! This comment will not be in the output }}
  34. {{!-- This comment as }} and will not be in the output --}}
  35. <!-- This comment will be in the output -->
  36. </div>
  37. `;
  38. exports[`each.hbs 1`] = `
  39. <div id="comments">
  40. {{#each comments}}
  41. <h2><a href="/posts/{{permalink}}#{{id}}">{{title}}</a></h2>
  42. <div>{{body}}</div>
  43. {{/each}}
  44. </div>
  45. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  46. <div id="comments">
  47. {{#each comments}}
  48. <h2>
  49. <a href="/posts/{{permalink}}#{{id}}">
  50. {{title}}
  51. </a>
  52. </h2>
  53. <div>
  54. {{body}}
  55. </div>
  56. {{/each}}
  57. </div>
  58. `;
  59. exports[`if.hbs 1`] = `
  60. {{#if title}}
  61. {{permalink}}
  62. {{/if}}
  63. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  64. {{#if title}}
  65. {{permalink}}
  66. {{/if}}
  67. `;
  68. exports[`if-else.hbs 1`] = `
  69. <h1>
  70. {{#if isAtWork}}
  71. Ship that code!
  72. {{else if isReading}}
  73. You can finish War and Peace eventually...
  74. {{else}}
  75. Go to bed!
  76. {{/if}}
  77. </h1>
  78. <h2>
  79. {{#if a}}
  80. A
  81. {{else}}
  82. B
  83. {{/if}}
  84. </h2>
  85. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  86. <h1>
  87. {{#if isAtWork}}
  88. Ship that code!
  89. {{else if isReading}}
  90. You can finish War and Peace eventually...
  91. {{else}}
  92. Go to bed!
  93. {{/if}}
  94. </h1>
  95. <h2>
  96. {{#if a}}
  97. A
  98. {{else}}
  99. B
  100. {{/if}}
  101. </h2>
  102. `;
  103. exports[`nested-path.hbs 1`] = `
  104. <div class="entry">
  105. <h1>{{title}}</h1>
  106. <h2>By {{author.name}}</h2>
  107. <div class="body">
  108. {{body}}
  109. </div>
  110. </div>
  111. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  112. <div class="entry">
  113. <h1>
  114. {{title}}
  115. </h1>
  116. <h2>
  117. By
  118. {{author.name}}
  119. </h2>
  120. <div class="body">
  121. {{body}}
  122. </div>
  123. </div>
  124. `;
  125. exports[`raw.hbs 1`] = `
  126. <p>{{{raw}}}</p>
  127. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  128. <p>
  129. {{{raw}}}
  130. </p>
  131. `;