Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

App-test.tsx.snap 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should work 1`] = `
  3. <Fragment>
  4. <Suggestions
  5. suggestions="custom_measures"
  6. />
  7. <Helmet
  8. defer={true}
  9. encodeSpecialCharacters={true}
  10. title="custom_measures.page"
  11. />
  12. <div
  13. className="page page-limited"
  14. >
  15. <Header
  16. loading={true}
  17. onCreate={[Function]}
  18. />
  19. </div>
  20. </Fragment>
  21. `;
  22. exports[`should work 2`] = `
  23. <Fragment>
  24. <Suggestions
  25. suggestions="custom_measures"
  26. />
  27. <Helmet
  28. defer={true}
  29. encodeSpecialCharacters={true}
  30. title="custom_measures.page"
  31. />
  32. <div
  33. className="page page-limited"
  34. >
  35. <Header
  36. loading={false}
  37. onCreate={[Function]}
  38. skipMetrics={
  39. Array [
  40. "custom",
  41. ]
  42. }
  43. />
  44. <List
  45. measures={
  46. Array [
  47. Object {
  48. "createdAt": "2017-01-01",
  49. "description": "my custom measure",
  50. "id": "1",
  51. "metric": Object {
  52. "key": "custom",
  53. "name": "custom-metric",
  54. "type": "STRING",
  55. },
  56. "projectKey": "foo",
  57. "user": Object {
  58. "active": true,
  59. "login": "user",
  60. "name": "user",
  61. },
  62. "value": "custom-value",
  63. },
  64. ]
  65. }
  66. onDelete={[Function]}
  67. onEdit={[Function]}
  68. />
  69. <ListFooter
  70. count={1}
  71. loadMore={[Function]}
  72. ready={true}
  73. total={1}
  74. />
  75. </div>
  76. </Fragment>
  77. `;
  78. exports[`should work 3`] = `
  79. Array [
  80. Object {
  81. "createdAt": "2017-01-01",
  82. "description": "my custom measure",
  83. "id": "1",
  84. "metric": Object {
  85. "key": "custom",
  86. "name": "custom-metric",
  87. "type": "STRING",
  88. },
  89. "projectKey": "foo",
  90. "user": Object {
  91. "active": true,
  92. "login": "user",
  93. "name": "user",
  94. },
  95. "value": "custom-value",
  96. },
  97. Object {
  98. "createdAt": "2018-01-01",
  99. "description": "description",
  100. "id": "2",
  101. "metric": Object {
  102. "key": "metricKey",
  103. "name": "Metric Name",
  104. "type": "STRING",
  105. },
  106. "projectKey": "foo",
  107. "user": Object {
  108. "active": true,
  109. "login": "user",
  110. "name": "user",
  111. },
  112. "value": "value",
  113. },
  114. ]
  115. `;
  116. exports[`should work 4`] = `
  117. Array [
  118. Object {
  119. "createdAt": "2017-01-01",
  120. "description": "my custom measure",
  121. "id": "1",
  122. "metric": Object {
  123. "key": "custom",
  124. "name": "custom-metric",
  125. "type": "STRING",
  126. },
  127. "projectKey": "foo",
  128. "user": Object {
  129. "active": true,
  130. "login": "user",
  131. "name": "user",
  132. },
  133. "value": "custom-value",
  134. },
  135. Object {
  136. "createdAt": "2018-01-01",
  137. "description": "another",
  138. "id": "2",
  139. "metric": Object {
  140. "key": "metricKey",
  141. "name": "Metric Name",
  142. "type": "STRING",
  143. },
  144. "projectKey": "foo",
  145. "user": Object {
  146. "active": true,
  147. "login": "user",
  148. "name": "user",
  149. },
  150. "value": "other",
  151. },
  152. ]
  153. `;
  154. exports[`should work 5`] = `
  155. Array [
  156. Object {
  157. "createdAt": "2017-01-01",
  158. "description": "my custom measure",
  159. "id": "1",
  160. "metric": Object {
  161. "key": "custom",
  162. "name": "custom-metric",
  163. "type": "STRING",
  164. },
  165. "projectKey": "foo",
  166. "user": Object {
  167. "active": true,
  168. "login": "user",
  169. "name": "user",
  170. },
  171. "value": "custom-value",
  172. },
  173. ]
  174. `;