]> source.dussan.org Git - sonarqube.git/blob
19ba423d5ed5bd1248bbb6a3574fb2b8ba8d4c32
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should handle filtering 1`] = `
4 <div
5   className="measure-overview-bubble-chart"
6 >
7   <div
8     className="measure-overview-bubble-chart-header"
9   >
10     <span
11       className="measure-overview-bubble-chart-title"
12     >
13       <span
14         className="text-middle"
15       >
16         component_measures.domain_x_overview.Security
17       </span>
18       <HelpTooltip
19         className="spacer-left"
20         overlay={null}
21       />
22     </span>
23     <span
24       className="measure-overview-bubble-chart-legend"
25     >
26       <span
27         className="note"
28       >
29         <span
30           className="spacer-right"
31         >
32           component_measures.legend.color_x.Security_rating
33         </span>
34         component_measures.legend.size_x.Vulnerabilities
35       </span>
36       <ColorRatingsLegend
37         className="spacer-top"
38         filters={
39           Object {
40             "2": true,
41           }
42         }
43         onRatingClick={[Function]}
44       />
45     </span>
46   </div>
47   <div
48     className="measure-overview-bubble-chart-content"
49   >
50     <BubbleChart
51       displayXGrid={true}
52       displayXTicks={true}
53       displayYGrid={true}
54       displayYTicks={true}
55       formatXTick={[Function]}
56       formatYTick={[Function]}
57       height={500}
58       items={Array []}
59       onBubbleClick={[Function]}
60       padding={
61         Array [
62           25,
63           60,
64           50,
65           60,
66         ]
67       }
68       sizeRange={
69         Array [
70           5,
71           45,
72         ]
73       }
74     />
75   </div>
76   <div
77     className="measure-overview-bubble-chart-axis x"
78   >
79     Ncloc
80   </div>
81   <div
82     className="measure-overview-bubble-chart-axis y"
83   >
84     Security_remediation_effort
85   </div>
86 </div>
87 `;
88
89 exports[`should render correctly 1`] = `
90 <div
91   className="measure-overview-bubble-chart"
92 >
93   <div
94     className="measure-overview-bubble-chart-header"
95   >
96     <span
97       className="measure-overview-bubble-chart-title"
98     >
99       <span
100         className="text-middle"
101       >
102         component_measures.domain_x_overview.Security
103       </span>
104       <HelpTooltip
105         className="spacer-left"
106         overlay={null}
107       />
108     </span>
109     <span
110       className="measure-overview-bubble-chart-legend"
111     >
112       <span
113         className="note"
114       >
115         <span
116           className="spacer-right"
117         >
118           component_measures.legend.color_x.Security_rating
119         </span>
120         component_measures.legend.size_x.Vulnerabilities
121       </span>
122       <ColorRatingsLegend
123         className="spacer-top"
124         filters={Object {}}
125         onRatingClick={[Function]}
126       />
127     </span>
128   </div>
129   <div
130     className="measure-overview-bubble-chart-content"
131   >
132     <BubbleChart
133       displayXGrid={true}
134       displayXTicks={true}
135       displayYGrid={true}
136       displayYTicks={true}
137       formatXTick={[Function]}
138       formatYTick={[Function]}
139       height={500}
140       items={
141         Array [
142           Object {
143             "color": "#b0d513",
144             "data": Object {
145               "key": "foo:src/index.tsx",
146               "leak": "1.0",
147               "measures": Array [
148                 Object {
149                   "bestValue": true,
150                   "leak": "1.0",
151                   "metric": Object {
152                     "id": "ncloc",
153                     "key": "ncloc",
154                     "name": "Ncloc",
155                     "type": "NUMBER",
156                   },
157                   "period": Object {
158                     "bestValue": true,
159                     "index": 1,
160                     "value": "1.0",
161                   },
162                   "value": "236",
163                 },
164                 Object {
165                   "bestValue": true,
166                   "leak": "1.0",
167                   "metric": Object {
168                     "id": "security_remediation_effort",
169                     "key": "security_remediation_effort",
170                     "name": "Security_remediation_effort",
171                     "type": "NUMBER",
172                   },
173                   "period": Object {
174                     "bestValue": true,
175                     "index": 1,
176                     "value": "1.0",
177                   },
178                   "value": "10",
179                 },
180                 Object {
181                   "bestValue": true,
182                   "leak": "1.0",
183                   "metric": Object {
184                     "id": "vulnerabilities",
185                     "key": "vulnerabilities",
186                     "name": "Vulnerabilities",
187                     "type": "NUMBER",
188                   },
189                   "period": Object {
190                     "bestValue": true,
191                     "index": 1,
192                     "value": "1.0",
193                   },
194                   "value": "3",
195                 },
196                 Object {
197                   "bestValue": true,
198                   "leak": "1.0",
199                   "metric": Object {
200                     "id": "security_rating",
201                     "key": "security_rating",
202                     "name": "Security_rating",
203                     "type": "RATING",
204                   },
205                   "period": Object {
206                     "bestValue": true,
207                     "index": 1,
208                     "value": "1.0",
209                   },
210                   "value": "2",
211                 },
212               ],
213               "name": "index.tsx",
214               "path": "src/index.tsx",
215               "qualifier": "FIL",
216               "value": "3",
217             },
218             "size": 3,
219             "tooltip": <div
220               className="text-left"
221             >
222               <React.Fragment>
223                 index.tsx
224                 <br />
225               </React.Fragment>
226               <React.Fragment>
227                 Ncloc: 236
228                 <br />
229               </React.Fragment>
230               <React.Fragment>
231                 Security_remediation_effort: 10
232                 <br />
233               </React.Fragment>
234               <React.Fragment>
235                 Vulnerabilities: 3
236                 <br />
237               </React.Fragment>
238               <React.Fragment>
239                 Security_rating: B
240               </React.Fragment>
241             </div>,
242             "x": 236,
243             "y": 10,
244           },
245         ]
246       }
247       onBubbleClick={[Function]}
248       padding={
249         Array [
250           25,
251           60,
252           50,
253           60,
254         ]
255       }
256       sizeRange={
257         Array [
258           5,
259           45,
260         ]
261       }
262     />
263   </div>
264   <div
265     className="measure-overview-bubble-chart-axis x"
266   >
267     Ncloc
268   </div>
269   <div
270     className="measure-overview-bubble-chart-axis y"
271   >
272     Security_remediation_effort
273   </div>
274 </div>
275 `;