]> source.dussan.org Git - sonarqube.git/blob
90ef112adf52a752ebd8422cf0ac4892de60655a
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: fix 1`] = `
4 <Fragment>
5   <BoxedTabs
6     onSelect={[Function]}
7     selected="fix"
8     tabs={
9       Array [
10         Object {
11           "content": <div
12             className="padded"
13           >
14             <div>
15               CodeTabContent
16             </div>
17           </div>,
18           "key": "code",
19           "label": "hotspots.tabs.code",
20         },
21         Object {
22           "content": <RuleDescription
23             className="big-padded"
24             isDefault={true}
25             sections={
26               Array [
27                 Object {
28                   "content": "cause",
29                   "key": "root_cause",
30                 },
31               ]
32             }
33           />,
34           "key": "risk",
35           "label": "hotspots.tabs.risk_description",
36         },
37         Object {
38           "content": <RuleDescription
39             className="big-padded"
40             isDefault={true}
41             sections={
42               Array [
43                 Object {
44                   "content": "assess",
45                   "key": "assess_the_problem",
46                 },
47               ]
48             }
49           />,
50           "key": "vulnerability",
51           "label": "hotspots.tabs.vulnerability_description",
52         },
53         Object {
54           "content": <RuleDescription
55             className="big-padded"
56             isDefault={true}
57             sections={
58               Array [
59                 Object {
60                   "content": "how",
61                   "key": "how_to_fix",
62                 },
63               ]
64             }
65           />,
66           "key": "fix",
67           "label": "hotspots.tabs.fix_recommendations",
68         },
69       ]
70     }
71   />
72   <div
73     className="bordered huge-spacer-bottom"
74   >
75     <RuleDescription
76       className="big-padded"
77       isDefault={true}
78       sections={
79         Array [
80           Object {
81             "content": "how",
82             "key": "how_to_fix",
83           },
84         ]
85       }
86     />
87   </div>
88 </Fragment>
89 `;
90
91 exports[`should render correctly: risk 1`] = `
92 <Fragment>
93   <BoxedTabs
94     onSelect={[Function]}
95     selected="code"
96     tabs={
97       Array [
98         Object {
99           "content": <div
100             className="padded"
101           >
102             <div>
103               CodeTabContent
104             </div>
105           </div>,
106           "key": "code",
107           "label": "hotspots.tabs.code",
108         },
109         Object {
110           "content": <RuleDescription
111             className="big-padded"
112             isDefault={true}
113             sections={
114               Array [
115                 Object {
116                   "content": "cause",
117                   "key": "root_cause",
118                 },
119               ]
120             }
121           />,
122           "key": "risk",
123           "label": "hotspots.tabs.risk_description",
124         },
125         Object {
126           "content": <RuleDescription
127             className="big-padded"
128             isDefault={true}
129             sections={
130               Array [
131                 Object {
132                   "content": "assess",
133                   "key": "assess_the_problem",
134                 },
135               ]
136             }
137           />,
138           "key": "vulnerability",
139           "label": "hotspots.tabs.vulnerability_description",
140         },
141         Object {
142           "content": <RuleDescription
143             className="big-padded"
144             isDefault={true}
145             sections={
146               Array [
147                 Object {
148                   "content": "how",
149                   "key": "how_to_fix",
150                 },
151               ]
152             }
153           />,
154           "key": "fix",
155           "label": "hotspots.tabs.fix_recommendations",
156         },
157       ]
158     }
159   />
160   <div
161     className="bordered huge-spacer-bottom"
162   >
163     <div
164       className="padded"
165     >
166       <div>
167         CodeTabContent
168       </div>
169     </div>
170   </div>
171 </Fragment>
172 `;
173
174 exports[`should render correctly: vulnerability 1`] = `
175 <Fragment>
176   <BoxedTabs
177     onSelect={[Function]}
178     selected="vulnerability"
179     tabs={
180       Array [
181         Object {
182           "content": <div
183             className="padded"
184           >
185             <div>
186               CodeTabContent
187             </div>
188           </div>,
189           "key": "code",
190           "label": "hotspots.tabs.code",
191         },
192         Object {
193           "content": <RuleDescription
194             className="big-padded"
195             isDefault={true}
196             sections={
197               Array [
198                 Object {
199                   "content": "cause",
200                   "key": "root_cause",
201                 },
202               ]
203             }
204           />,
205           "key": "risk",
206           "label": "hotspots.tabs.risk_description",
207         },
208         Object {
209           "content": <RuleDescription
210             className="big-padded"
211             isDefault={true}
212             sections={
213               Array [
214                 Object {
215                   "content": "assess",
216                   "key": "assess_the_problem",
217                 },
218               ]
219             }
220           />,
221           "key": "vulnerability",
222           "label": "hotspots.tabs.vulnerability_description",
223         },
224         Object {
225           "content": <RuleDescription
226             className="big-padded"
227             isDefault={true}
228             sections={
229               Array [
230                 Object {
231                   "content": "how",
232                   "key": "how_to_fix",
233                 },
234               ]
235             }
236           />,
237           "key": "fix",
238           "label": "hotspots.tabs.fix_recommendations",
239         },
240       ]
241     }
242   />
243   <div
244     className="bordered huge-spacer-bottom"
245   >
246     <RuleDescription
247       className="big-padded"
248       isDefault={true}
249       sections={
250         Array [
251           Object {
252             "content": "assess",
253             "key": "assess_the_problem",
254           },
255         ]
256       }
257     />
258   </div>
259 </Fragment>
260 `;
261
262 exports[`should render correctly: with comments or changelog element 1`] = `
263 <Fragment>
264   <BoxedTabs
265     onSelect={[Function]}
266     selected="code"
267     tabs={
268       Array [
269         Object {
270           "content": <div
271             className="padded"
272           >
273             <div>
274               CodeTabContent
275             </div>
276           </div>,
277           "key": "code",
278           "label": "hotspots.tabs.code",
279         },
280         Object {
281           "content": <RuleDescription
282             className="big-padded"
283             isDefault={true}
284             sections={
285               Array [
286                 Object {
287                   "content": "cause",
288                   "key": "root_cause",
289                 },
290               ]
291             }
292           />,
293           "key": "risk",
294           "label": "hotspots.tabs.risk_description",
295         },
296         Object {
297           "content": <RuleDescription
298             className="big-padded"
299             isDefault={true}
300             sections={
301               Array [
302                 Object {
303                   "content": "assess",
304                   "key": "assess_the_problem",
305                 },
306               ]
307             }
308           />,
309           "key": "vulnerability",
310           "label": "hotspots.tabs.vulnerability_description",
311         },
312         Object {
313           "content": <RuleDescription
314             className="big-padded"
315             isDefault={true}
316             sections={
317               Array [
318                 Object {
319                   "content": "how",
320                   "key": "how_to_fix",
321                 },
322               ]
323             }
324           />,
325           "key": "fix",
326           "label": "hotspots.tabs.fix_recommendations",
327         },
328       ]
329     }
330   />
331   <div
332     className="bordered huge-spacer-bottom"
333   >
334     <div
335       className="padded"
336     >
337       <div>
338         CodeTabContent
339       </div>
340     </div>
341   </div>
342 </Fragment>
343 `;