test.js.snap 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`accepts custom indent amounts for every block 1`] = `
  3. "<script>
  4. export default {
  5. props: {
  6. name: {
  7. type: String
  8. }
  9. }
  10. };
  11. </script>
  12. <template>
  13. <div class=\\"widget\\">Hello {{name}}</div>
  14. </template>
  15. <style>
  16. .widget {
  17. color: red;
  18. }
  19. </style>
  20. <custom1>
  21. hello 1
  22. </custom1>
  23. "
  24. `;
  25. exports[`attributes on blocks 1`] = `
  26. "<script lang=\\"js\\">
  27. export default {
  28. props: {
  29. name: {
  30. type: String
  31. }
  32. }
  33. };
  34. </script>
  35. <template lang=\\"html\\">
  36. <div class=\\"widget\\">Hello {{name}}</div>
  37. </template>
  38. <style lang=\\"css\\" scoped>
  39. .widget {
  40. color: red;
  41. }
  42. </style>
  43. "
  44. `;
  45. exports[`custom blocks 1`] = `
  46. "<script>
  47. export default {
  48. props: {
  49. name: {
  50. type: String
  51. }
  52. }
  53. };
  54. </script>
  55. <template>
  56. <div class=\\"widget\\">Hello {{name}}</div>
  57. </template>
  58. <style>
  59. .widget {
  60. color: red;
  61. }
  62. </style>
  63. <custom1>
  64. hello 1
  65. </custom1>
  66. <custom2>
  67. hello 2
  68. </custom2>
  69. "
  70. `;
  71. exports[`different order blocks 1`] = `
  72. "<template>
  73. <div class=\\"widget\\">Hello {{name}}</div>
  74. </template>
  75. <script>
  76. export default {
  77. props: {
  78. name: {
  79. type: String
  80. }
  81. }
  82. };
  83. </script>
  84. <style>
  85. .widget {
  86. color: red;
  87. }
  88. </style>
  89. "
  90. `;
  91. exports[`extra newlines between blocks 1`] = `
  92. "<script>
  93. export default {
  94. props: {
  95. name: {
  96. type: String
  97. }
  98. }
  99. };
  100. </script>
  101. <template>
  102. <div class=\\"widget\\">Hello {{name}}</div>
  103. </template>
  104. <style>
  105. .widget {
  106. color: red;
  107. }
  108. </style>
  109. "
  110. `;
  111. exports[`leading newlines 1`] = `
  112. "
  113. <script>
  114. export default {
  115. props: {
  116. name: {
  117. type: String
  118. }
  119. }
  120. };
  121. </script>
  122. <template>
  123. <div class=\\"widget\\">Hello {{name}}</div>
  124. </template>
  125. <style>
  126. .widget {
  127. color: red;
  128. }
  129. </style>
  130. "
  131. `;
  132. exports[`multiple styles 1`] = `
  133. "<script>
  134. export default {
  135. props: {
  136. name: {
  137. type: String
  138. }
  139. }
  140. };
  141. </script>
  142. <template>
  143. <div class=\\"widget\\">Hello {{name}}</div>
  144. </template>
  145. <style>
  146. .one {
  147. color: red;
  148. }
  149. </style>
  150. <style>
  151. .two {
  152. color: blue;
  153. }
  154. </style>
  155. "
  156. `;
  157. exports[`no script 1`] = `
  158. "<template>
  159. <div class=\\"widget\\">Hello {{name}}</div>
  160. </template>
  161. <style>
  162. .widget {
  163. color: red;
  164. }
  165. </style>
  166. "
  167. `;
  168. exports[`no style 1`] = `
  169. "<script>
  170. export default {
  171. props: {
  172. name: {
  173. type: String
  174. }
  175. }
  176. };
  177. </script>
  178. <template>
  179. <div class=\\"widget\\">Hello {{name}}</div>
  180. </template>
  181. "
  182. `;
  183. exports[`no template 1`] = `
  184. "<script>
  185. export default {
  186. props: {
  187. name: {
  188. type: String
  189. }
  190. }
  191. };
  192. </script>
  193. <style>
  194. .widget {
  195. color: red;
  196. }
  197. </style>
  198. "
  199. `;
  200. exports[`vanilla sfc 1`] = `
  201. "<script>
  202. export default {
  203. props: {
  204. name: {
  205. type: String
  206. }
  207. }
  208. };
  209. </script>
  210. <template>
  211. <div class=\\"widget\\">Hello {{name}}</div>
  212. </template>
  213. <style>
  214. .widget {
  215. color: red;
  216. }
  217. </style>
  218. "
  219. `;