]> source.dussan.org Git - sonarqube.git/blob
00938d611a838d1b4acef20a69db9d5e0b6b5138
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should correctly filter analyses by category 1`] = `
4 <ul
5   className="project-activity-versions-list"
6   onScroll={[Function]}
7   style={
8     Object {
9       "paddingTop": 52,
10     }
11   }
12 >
13   <li>
14     <div
15       className="project-activity-version-badge first"
16     >
17       <span
18         className="badge"
19       >
20         6.4
21       </span>
22     </div>
23     <ul
24       className="project-activity-days-list"
25     >
26       <li
27         className="project-activity-day"
28       >
29         <div
30           className="project-activity-date"
31         >
32           <DateFormatter
33             date="1477267200000"
34             long={true}
35           />
36         </div>
37         <ul
38           className="project-activity-analyses-list"
39         >
40           <ProjectActivityAnalysis
41             addCustomEvent={[Function]}
42             addVersion={[Function]}
43             analysis={
44               Object {
45                 "date": 2016-10-24T16:33:50.000Z,
46                 "events": Array [
47                   Object {
48                     "category": "QUALITY_GATE",
49                     "key": "E1",
50                     "name": "Quality gate changed to red...",
51                   },
52                 ],
53                 "key": "A4",
54               }
55             }
56             canAdmin={false}
57             canCreateVersion={true}
58             changeEvent={[Function]}
59             deleteAnalysis={[Function]}
60             deleteEvent={[Function]}
61             isFirst={false}
62             selected={false}
63             updateSelectedDate={[Function]}
64           />
65         </ul>
66       </li>
67     </ul>
68   </li>
69 </ul>
70 `;
71
72 exports[`should correctly filter analyses by date range 1`] = `
73 <ul
74   className="project-activity-versions-list"
75   onScroll={[Function]}
76   style={
77     Object {
78       "paddingTop": 52,
79     }
80   }
81 >
82   <li>
83     <div
84       className="project-activity-version-badge first"
85     >
86       <span
87         className="badge"
88       >
89         6.5-SNAPSHOT
90       </span>
91     </div>
92     <ul
93       className="project-activity-days-list"
94     >
95       <li
96         className="project-activity-day"
97       >
98         <div
99           className="project-activity-date"
100         >
101           <DateFormatter
102             date="1477526400000"
103             long={true}
104           />
105         </div>
106         <ul
107           className="project-activity-analyses-list"
108         >
109           <ProjectActivityAnalysis
110             addCustomEvent={[Function]}
111             addVersion={[Function]}
112             analysis={
113               Object {
114                 "date": 2016-10-27T16:33:50.000Z,
115                 "events": Array [
116                   Object {
117                     "category": "VERSION",
118                     "key": "E1",
119                     "name": "6.5-SNAPSHOT",
120                   },
121                 ],
122                 "key": "A1",
123               }
124             }
125             canAdmin={false}
126             canCreateVersion={true}
127             changeEvent={[Function]}
128             deleteAnalysis={[Function]}
129             deleteEvent={[Function]}
130             isFirst={true}
131             selected={false}
132             updateSelectedDate={[Function]}
133           />
134         </ul>
135       </li>
136     </ul>
137   </li>
138 </ul>
139 `;
140
141 exports[`should render correctly 1`] = `
142 <ul
143   className="project-activity-versions-list"
144   onScroll={[Function]}
145   style={
146     Object {
147       "paddingTop": 52,
148     }
149   }
150 >
151   <li>
152     <div
153       className="project-activity-version-badge first"
154     >
155       <span
156         className="badge"
157       >
158         6.5-SNAPSHOT
159       </span>
160     </div>
161     <ul
162       className="project-activity-days-list"
163     >
164       <li
165         className="project-activity-day"
166       >
167         <div
168           className="project-activity-date"
169         >
170           <DateFormatter
171             date="1477526400000"
172             long={true}
173           />
174         </div>
175         <ul
176           className="project-activity-analyses-list"
177         >
178           <ProjectActivityAnalysis
179             addCustomEvent={[Function]}
180             addVersion={[Function]}
181             analysis={
182               Object {
183                 "date": 2016-10-27T16:33:50.000Z,
184                 "events": Array [
185                   Object {
186                     "category": "VERSION",
187                     "key": "E1",
188                     "name": "6.5-SNAPSHOT",
189                   },
190                 ],
191                 "key": "A1",
192               }
193             }
194             canAdmin={false}
195             canCreateVersion={true}
196             changeEvent={[Function]}
197             deleteAnalysis={[Function]}
198             deleteEvent={[Function]}
199             isFirst={true}
200             selected={false}
201             updateSelectedDate={[Function]}
202           />
203           <ProjectActivityAnalysis
204             addCustomEvent={[Function]}
205             addVersion={[Function]}
206             analysis={
207               Object {
208                 "date": 2016-10-27T12:21:15.000Z,
209                 "events": Array [],
210                 "key": "A2",
211               }
212             }
213             canAdmin={false}
214             canCreateVersion={true}
215             changeEvent={[Function]}
216             deleteAnalysis={[Function]}
217             deleteEvent={[Function]}
218             isFirst={false}
219             selected={false}
220             updateSelectedDate={[Function]}
221           />
222         </ul>
223       </li>
224     </ul>
225   </li>
226   <li>
227     <div
228       className="project-activity-version-badge"
229     >
230       <span
231         className="badge"
232       >
233         6.4
234       </span>
235     </div>
236     <ul
237       className="project-activity-days-list"
238     >
239       <li
240         className="project-activity-day"
241       >
242         <div
243           className="project-activity-date"
244         >
245           <DateFormatter
246             date="1477440000000"
247             long={true}
248           />
249         </div>
250         <ul
251           className="project-activity-analyses-list"
252         >
253           <ProjectActivityAnalysis
254             addCustomEvent={[Function]}
255             addVersion={[Function]}
256             analysis={
257               Object {
258                 "date": 2016-10-26T12:17:29.000Z,
259                 "events": Array [
260                   Object {
261                     "category": "VERSION",
262                     "key": "E2",
263                     "name": "6.4",
264                   },
265                   Object {
266                     "category": "OTHER",
267                     "key": "E3",
268                     "name": "foo",
269                   },
270                 ],
271                 "key": "A3",
272               }
273             }
274             canAdmin={false}
275             canCreateVersion={true}
276             changeEvent={[Function]}
277             deleteAnalysis={[Function]}
278             deleteEvent={[Function]}
279             isFirst={false}
280             selected={false}
281             updateSelectedDate={[Function]}
282           />
283         </ul>
284       </li>
285       <li
286         className="project-activity-day"
287       >
288         <div
289           className="project-activity-date"
290         >
291           <DateFormatter
292             date="1477267200000"
293             long={true}
294           />
295         </div>
296         <ul
297           className="project-activity-analyses-list"
298         >
299           <ProjectActivityAnalysis
300             addCustomEvent={[Function]}
301             addVersion={[Function]}
302             analysis={
303               Object {
304                 "date": 2016-10-24T16:33:50.000Z,
305                 "events": Array [
306                   Object {
307                     "category": "QUALITY_GATE",
308                     "key": "E1",
309                     "name": "Quality gate changed to red...",
310                   },
311                 ],
312                 "key": "A4",
313               }
314             }
315             canAdmin={false}
316             canCreateVersion={true}
317             changeEvent={[Function]}
318             deleteAnalysis={[Function]}
319             deleteEvent={[Function]}
320             isFirst={false}
321             selected={false}
322             updateSelectedDate={[Function]}
323           />
324         </ul>
325       </li>
326     </ul>
327   </li>
328 </ul>
329 `;