您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

IssueRating-test.tsx.snap 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly for bugs 1`] = `
  3. <Fragment>
  4. <span
  5. className="flex-1 big-spacer-right text-right"
  6. >
  7. metric_domain.Reliability
  8. </span>
  9. <Tooltip
  10. overlay={
  11. <withAppStateContext(RatingTooltipContent)
  12. metricKey="reliability_rating"
  13. value="1.0"
  14. />
  15. }
  16. >
  17. <span>
  18. <DrilldownLink
  19. branchLike={
  20. Object {
  21. "analysisDate": "2018-01-01",
  22. "base": "master",
  23. "branch": "feature/foo/bar",
  24. "key": "1001",
  25. "target": "master",
  26. "title": "Foo Bar feature",
  27. }
  28. }
  29. className="link-no-underline"
  30. component="my-project"
  31. metric="reliability_rating"
  32. >
  33. <Rating
  34. value="1.0"
  35. />
  36. </DrilldownLink>
  37. </span>
  38. </Tooltip>
  39. </Fragment>
  40. `;
  41. exports[`should render correctly for bugs 2`] = `
  42. <Fragment>
  43. <span
  44. className="flex-1 big-spacer-right text-right"
  45. >
  46. metric_domain.Reliability
  47. </span>
  48. <Tooltip
  49. overlay={
  50. <withAppStateContext(RatingTooltipContent)
  51. metricKey="new_reliability_rating"
  52. value="1.0"
  53. />
  54. }
  55. >
  56. <span>
  57. <DrilldownLink
  58. branchLike={
  59. Object {
  60. "analysisDate": "2018-01-01",
  61. "base": "master",
  62. "branch": "feature/foo/bar",
  63. "key": "1001",
  64. "target": "master",
  65. "title": "Foo Bar feature",
  66. }
  67. }
  68. className="link-no-underline"
  69. component="my-project"
  70. metric="new_reliability_rating"
  71. >
  72. <Rating
  73. value="1.0"
  74. />
  75. </DrilldownLink>
  76. </span>
  77. </Tooltip>
  78. </Fragment>
  79. `;
  80. exports[`should render correctly for code smells 1`] = `
  81. <Fragment>
  82. <span
  83. className="flex-1 big-spacer-right text-right"
  84. >
  85. metric_domain.Maintainability
  86. </span>
  87. <Tooltip
  88. overlay={
  89. <withAppStateContext(RatingTooltipContent)
  90. metricKey="sqale_rating"
  91. value="1.0"
  92. />
  93. }
  94. >
  95. <span>
  96. <DrilldownLink
  97. branchLike={
  98. Object {
  99. "analysisDate": "2018-01-01",
  100. "base": "master",
  101. "branch": "feature/foo/bar",
  102. "key": "1001",
  103. "target": "master",
  104. "title": "Foo Bar feature",
  105. }
  106. }
  107. className="link-no-underline"
  108. component="my-project"
  109. metric="sqale_rating"
  110. >
  111. <Rating
  112. value="1.0"
  113. />
  114. </DrilldownLink>
  115. </span>
  116. </Tooltip>
  117. </Fragment>
  118. `;
  119. exports[`should render correctly for code smells 2`] = `
  120. <Fragment>
  121. <span
  122. className="flex-1 big-spacer-right text-right"
  123. >
  124. metric_domain.Maintainability
  125. </span>
  126. <Tooltip
  127. overlay={
  128. <withAppStateContext(RatingTooltipContent)
  129. metricKey="new_maintainability_rating"
  130. value="1.0"
  131. />
  132. }
  133. >
  134. <span>
  135. <DrilldownLink
  136. branchLike={
  137. Object {
  138. "analysisDate": "2018-01-01",
  139. "base": "master",
  140. "branch": "feature/foo/bar",
  141. "key": "1001",
  142. "target": "master",
  143. "title": "Foo Bar feature",
  144. }
  145. }
  146. className="link-no-underline"
  147. component="my-project"
  148. metric="new_maintainability_rating"
  149. >
  150. <Rating
  151. value="1.0"
  152. />
  153. </DrilldownLink>
  154. </span>
  155. </Tooltip>
  156. </Fragment>
  157. `;
  158. exports[`should render correctly for vulnerabilities 1`] = `
  159. <Fragment>
  160. <span
  161. className="flex-1 big-spacer-right text-right"
  162. >
  163. metric_domain.Security
  164. </span>
  165. <Tooltip
  166. overlay={
  167. <withAppStateContext(RatingTooltipContent)
  168. metricKey="security_rating"
  169. value="1.0"
  170. />
  171. }
  172. >
  173. <span>
  174. <DrilldownLink
  175. branchLike={
  176. Object {
  177. "analysisDate": "2018-01-01",
  178. "base": "master",
  179. "branch": "feature/foo/bar",
  180. "key": "1001",
  181. "target": "master",
  182. "title": "Foo Bar feature",
  183. }
  184. }
  185. className="link-no-underline"
  186. component="my-project"
  187. metric="security_rating"
  188. >
  189. <Rating
  190. value="1.0"
  191. />
  192. </DrilldownLink>
  193. </span>
  194. </Tooltip>
  195. </Fragment>
  196. `;
  197. exports[`should render correctly for vulnerabilities 2`] = `
  198. <Fragment>
  199. <span
  200. className="flex-1 big-spacer-right text-right"
  201. >
  202. metric_domain.Security
  203. </span>
  204. <Tooltip
  205. overlay={
  206. <withAppStateContext(RatingTooltipContent)
  207. metricKey="new_security_rating"
  208. value="1.0"
  209. />
  210. }
  211. >
  212. <span>
  213. <DrilldownLink
  214. branchLike={
  215. Object {
  216. "analysisDate": "2018-01-01",
  217. "base": "master",
  218. "branch": "feature/foo/bar",
  219. "key": "1001",
  220. "target": "master",
  221. "title": "Foo Bar feature",
  222. }
  223. }
  224. className="link-no-underline"
  225. component="my-project"
  226. metric="new_security_rating"
  227. >
  228. <Rating
  229. value="1.0"
  230. />
  231. </DrilldownLink>
  232. </span>
  233. </Tooltip>
  234. </Fragment>
  235. `;
  236. exports[`should render correctly if no values are present 1`] = `
  237. <Fragment>
  238. <span
  239. className="flex-1 big-spacer-right text-right"
  240. >
  241. metric_domain.Reliability
  242. </span>
  243. <div
  244. className="padded"
  245. >
  246. <Rating />
  247. </div>
  248. </Fragment>
  249. `;