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