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