]> source.dussan.org Git - sonarqube.git/blob
2698ccdc7b19783c86fa3b2af2fc0bc1dc433c87
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <ul
5   className="item-list"
6 >
7   <li
8     className="item"
9   >
10     <span
11       className="note"
12     >
13       no_results
14     </span>
15   </li>
16   <Memo(MenuItem)
17     branchLike={
18       Object {
19         "analysisDate": "2018-01-01",
20         "excludedFromPurge": true,
21         "isMain": true,
22         "name": "master",
23       }
24     }
25     component={
26       Object {
27         "breadcrumbs": Array [],
28         "key": "my-project",
29         "name": "MyProject",
30         "qualifier": "TRK",
31         "qualityGate": Object {
32           "isDefault": true,
33           "key": "30",
34           "name": "Sonar way",
35         },
36         "qualityProfiles": Array [
37           Object {
38             "deleted": false,
39             "key": "my-qp",
40             "language": "ts",
41             "name": "Sonar way",
42           },
43         ],
44         "tags": Array [],
45       }
46     }
47     key="branch-master"
48     onSelect={[MockFunction]}
49     selected={false}
50     setSelectedNode={[Function]}
51   />
52   <li
53     className="item header"
54   >
55     <span
56       className="big-spacer-left"
57     >
58       branch_like_navigation.pull_requests
59     </span>
60   </li>
61   <Memo(MenuItem)
62     branchLike={
63       Object {
64         "analysisDate": "2018-01-01",
65         "base": "master",
66         "branch": "feature/foo/bar",
67         "key": "1",
68         "target": "master",
69         "title": "PR-1",
70       }
71     }
72     component={
73       Object {
74         "breadcrumbs": Array [],
75         "key": "my-project",
76         "name": "MyProject",
77         "qualifier": "TRK",
78         "qualityGate": Object {
79           "isDefault": true,
80           "key": "30",
81           "name": "Sonar way",
82         },
83         "qualityProfiles": Array [
84           Object {
85             "deleted": false,
86             "key": "my-qp",
87             "language": "ts",
88             "name": "Sonar way",
89           },
90         ],
91         "tags": Array [],
92       }
93     }
94     indent={true}
95     key="pull-request-1"
96     onSelect={[MockFunction]}
97     selected={false}
98     setSelectedNode={[Function]}
99   />
100   <Memo(MenuItem)
101     branchLike={
102       Object {
103         "analysisDate": "2018-01-01",
104         "base": "master",
105         "branch": "feature/foo/bar",
106         "key": "2",
107         "target": "master",
108         "title": "PR-2",
109       }
110     }
111     component={
112       Object {
113         "breadcrumbs": Array [],
114         "key": "my-project",
115         "name": "MyProject",
116         "qualifier": "TRK",
117         "qualityGate": Object {
118           "isDefault": true,
119           "key": "30",
120           "name": "Sonar way",
121         },
122         "qualityProfiles": Array [
123           Object {
124             "deleted": false,
125             "key": "my-qp",
126             "language": "ts",
127             "name": "Sonar way",
128           },
129         ],
130         "tags": Array [],
131       }
132     }
133     indent={true}
134     key="pull-request-2"
135     onSelect={[MockFunction]}
136     selected={false}
137     setSelectedNode={[Function]}
138   />
139   <hr />
140   <Memo(MenuItem)
141     branchLike={
142       Object {
143         "analysisDate": "2018-01-01",
144         "excludedFromPurge": true,
145         "isMain": false,
146         "name": "branch-1",
147       }
148     }
149     component={
150       Object {
151         "breadcrumbs": Array [],
152         "key": "my-project",
153         "name": "MyProject",
154         "qualifier": "TRK",
155         "qualityGate": Object {
156           "isDefault": true,
157           "key": "30",
158           "name": "Sonar way",
159         },
160         "qualityProfiles": Array [
161           Object {
162             "deleted": false,
163             "key": "my-qp",
164             "language": "ts",
165             "name": "Sonar way",
166           },
167         ],
168         "tags": Array [],
169       }
170     }
171     key="branch-branch-1"
172     onSelect={[MockFunction]}
173     selected={false}
174     setSelectedNode={[Function]}
175   />
176   <hr />
177   <Memo(MenuItem)
178     branchLike={
179       Object {
180         "analysisDate": "2018-01-01",
181         "excludedFromPurge": true,
182         "isMain": false,
183         "name": "branch-11",
184       }
185     }
186     component={
187       Object {
188         "breadcrumbs": Array [],
189         "key": "my-project",
190         "name": "MyProject",
191         "qualifier": "TRK",
192         "qualityGate": Object {
193           "isDefault": true,
194           "key": "30",
195           "name": "Sonar way",
196         },
197         "qualityProfiles": Array [
198           Object {
199             "deleted": false,
200             "key": "my-qp",
201             "language": "ts",
202             "name": "Sonar way",
203           },
204         ],
205         "tags": Array [],
206       }
207     }
208     key="branch-branch-11"
209     onSelect={[MockFunction]}
210     selected={true}
211     setSelectedNode={[Function]}
212   />
213   <hr />
214   <Memo(MenuItem)
215     branchLike={
216       Object {
217         "analysisDate": "2018-01-01",
218         "excludedFromPurge": true,
219         "isMain": false,
220         "name": "branch-12",
221       }
222     }
223     component={
224       Object {
225         "breadcrumbs": Array [],
226         "key": "my-project",
227         "name": "MyProject",
228         "qualifier": "TRK",
229         "qualityGate": Object {
230           "isDefault": true,
231           "key": "30",
232           "name": "Sonar way",
233         },
234         "qualityProfiles": Array [
235           Object {
236             "deleted": false,
237             "key": "my-qp",
238             "language": "ts",
239             "name": "Sonar way",
240           },
241         ],
242         "tags": Array [],
243       }
244     }
245     key="branch-branch-12"
246     onSelect={[MockFunction]}
247     selected={false}
248     setSelectedNode={[Function]}
249   />
250   <hr />
251   <Memo(MenuItem)
252     branchLike={
253       Object {
254         "analysisDate": "2018-01-01",
255         "excludedFromPurge": true,
256         "isMain": false,
257         "name": "branch-2",
258       }
259     }
260     component={
261       Object {
262         "breadcrumbs": Array [],
263         "key": "my-project",
264         "name": "MyProject",
265         "qualifier": "TRK",
266         "qualityGate": Object {
267           "isDefault": true,
268           "key": "30",
269           "name": "Sonar way",
270         },
271         "qualityProfiles": Array [
272           Object {
273             "deleted": false,
274             "key": "my-qp",
275             "language": "ts",
276             "name": "Sonar way",
277           },
278         ],
279         "tags": Array [],
280       }
281     }
282     key="branch-branch-2"
283     onSelect={[MockFunction]}
284     selected={false}
285     setSelectedNode={[Function]}
286   />
287   <hr />
288   <Memo(MenuItem)
289     branchLike={
290       Object {
291         "analysisDate": "2018-01-01",
292         "excludedFromPurge": true,
293         "isMain": false,
294         "name": "branch-3",
295       }
296     }
297     component={
298       Object {
299         "breadcrumbs": Array [],
300         "key": "my-project",
301         "name": "MyProject",
302         "qualifier": "TRK",
303         "qualityGate": Object {
304           "isDefault": true,
305           "key": "30",
306           "name": "Sonar way",
307         },
308         "qualityProfiles": Array [
309           Object {
310             "deleted": false,
311             "key": "my-qp",
312             "language": "ts",
313             "name": "Sonar way",
314           },
315         ],
316         "tags": Array [],
317       }
318     }
319     key="branch-branch-3"
320     onSelect={[MockFunction]}
321     selected={false}
322     setSelectedNode={[Function]}
323   />
324   <hr />
325   <li
326     className="item header"
327   >
328     branch_like_navigation.pull_requests
329   </li>
330   <Memo(MenuItem)
331     branchLike={
332       Object {
333         "analysisDate": "2018-01-01",
334         "base": "not-in-the-list",
335         "branch": "feature/foo/bar",
336         "key": "1001",
337         "target": "master",
338         "title": "Foo Bar feature",
339       }
340     }
341     component={
342       Object {
343         "breadcrumbs": Array [],
344         "key": "my-project",
345         "name": "MyProject",
346         "qualifier": "TRK",
347         "qualityGate": Object {
348           "isDefault": true,
349           "key": "30",
350           "name": "Sonar way",
351         },
352         "qualityProfiles": Array [
353           Object {
354             "deleted": false,
355             "key": "my-qp",
356             "language": "ts",
357             "name": "Sonar way",
358           },
359         ],
360         "tags": Array [],
361       }
362     }
363     key="pull-request-1001"
364     onSelect={[MockFunction]}
365     selected={false}
366     setSelectedNode={[Function]}
367   />
368   <li
369     className="item header"
370   >
371     branch_like_navigation.orphan_pull_requests
372     <HelpTooltip
373       className="little-spacer-left"
374       overlay="branch_like_navigation.orphan_pull_requests.tooltip"
375     />
376   </li>
377   <Memo(MenuItem)
378     branchLike={
379       Object {
380         "analysisDate": "2018-01-01",
381         "base": "master",
382         "branch": "feature/foo/bar",
383         "isOrphan": true,
384         "key": "2",
385         "target": "llb-100",
386         "title": "PR-2",
387       }
388     }
389     component={
390       Object {
391         "breadcrumbs": Array [],
392         "key": "my-project",
393         "name": "MyProject",
394         "qualifier": "TRK",
395         "qualityGate": Object {
396           "isDefault": true,
397           "key": "30",
398           "name": "Sonar way",
399         },
400         "qualityProfiles": Array [
401           Object {
402             "deleted": false,
403             "key": "my-qp",
404             "language": "ts",
405             "name": "Sonar way",
406           },
407         ],
408         "tags": Array [],
409       }
410     }
411     key="pull-request-2"
412     onSelect={[MockFunction]}
413     selected={false}
414     setSelectedNode={[Function]}
415   />
416 </ul>
417 `;