]> source.dussan.org Git - sonarqube.git/blob
b97c9aa90541772fc5c549c2d33ccf51b04fbbfe
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should correctly filter analyses by category 1`] = `
4 Object {
5   "filteredAnalyses": Array [
6     Object {
7       "date": 2016-10-27T14:33:50.000Z,
8       "events": Array [
9         Object {
10           "category": "VERSION",
11           "key": "E1",
12           "name": "6.5-SNAPSHOT",
13         },
14       ],
15       "key": "A1",
16     },
17     Object {
18       "date": 2016-10-26T10:17:29.000Z,
19       "events": Array [
20         Object {
21           "category": "VERSION",
22           "key": "E2",
23           "name": "6.4",
24         },
25         Object {
26           "category": "OTHER",
27           "key": "E3",
28           "name": "foo",
29         },
30       ],
31       "key": "A3",
32     },
33   ],
34 }
35 `;
36
37 exports[`should correctly filter analyses by date range 1`] = `
38 Object {
39   "filteredAnalyses": Array [
40     Object {
41       "date": 2016-10-27T10:21:15.000Z,
42       "events": Array [],
43       "key": "A2",
44     },
45   ],
46 }
47 `;
48
49 exports[`should render correctly 1`] = `
50 <div
51   className="page page-limited"
52   id="project-activity"
53 >
54   <HelmetWrapper
55     title="project_activity.page"
56   />
57   <ProjectActivityPageHeader
58     category=""
59     updateQuery={[Function]}
60   />
61   <div
62     className="layout-page project-activity-page"
63   >
64     <div
65       className="layout-page-side-outer project-activity-page-side-outer boxed-group"
66     >
67       <ProjectActivityAnalysesList
68         addCustomEvent={[Function]}
69         addVersion={[Function]}
70         analyses={
71           Array [
72             Object {
73               "date": 2016-10-27T14:33:50.000Z,
74               "events": Array [
75                 Object {
76                   "category": "VERSION",
77                   "key": "E1",
78                   "name": "6.5-SNAPSHOT",
79                 },
80               ],
81               "key": "A1",
82             },
83             Object {
84               "date": 2016-10-27T10:21:15.000Z,
85               "events": Array [],
86               "key": "A2",
87             },
88             Object {
89               "date": 2016-10-26T10:17:29.000Z,
90               "events": Array [
91                 Object {
92                   "category": "VERSION",
93                   "key": "E2",
94                   "name": "6.4",
95                 },
96                 Object {
97                   "category": "OTHER",
98                   "key": "E3",
99                   "name": "foo",
100                 },
101               ],
102               "key": "A3",
103             },
104           ]
105         }
106         analysesLoading={false}
107         canAdmin={false}
108         changeEvent={[Function]}
109         className="boxed-group-inner"
110         deleteAnalysis={[Function]}
111         deleteEvent={[Function]}
112         loading={false}
113         query={
114           Object {
115             "category": "",
116             "graph": "overview",
117             "project": "org.sonarsource.sonarqube:sonarqube",
118           }
119         }
120       />
121     </div>
122     <div
123       className="project-activity-layout-page-main"
124     >
125       <ProjectActivityGraphs
126         analyses={
127           Array [
128             Object {
129               "date": 2016-10-27T14:33:50.000Z,
130               "events": Array [
131                 Object {
132                   "category": "VERSION",
133                   "key": "E1",
134                   "name": "6.5-SNAPSHOT",
135                 },
136               ],
137               "key": "A1",
138             },
139             Object {
140               "date": 2016-10-27T10:21:15.000Z,
141               "events": Array [],
142               "key": "A2",
143             },
144             Object {
145               "date": 2016-10-26T10:17:29.000Z,
146               "events": Array [
147                 Object {
148                   "category": "VERSION",
149                   "key": "E2",
150                   "name": "6.4",
151                 },
152                 Object {
153                   "category": "OTHER",
154                   "key": "E3",
155                   "name": "foo",
156                 },
157               ],
158               "key": "A3",
159             },
160           ]
161         }
162         leakPeriodDate={2017-05-16T11:50:02.000Z}
163         loading={false}
164         measuresHistory={
165           Array [
166             Object {
167               "history": Array [
168                 Object {
169                   "date": 2016-03-04T09:40:12.000Z,
170                   "value": "1749",
171                 },
172                 Object {
173                   "date": 2016-03-04T17:40:16.000Z,
174                   "value": "2286",
175                 },
176               ],
177               "metric": "code_smells",
178             },
179           ]
180         }
181         metricsType="INT"
182         project="org.sonarsource.sonarqube:sonarqube"
183         query={
184           Object {
185             "category": "",
186             "graph": "overview",
187             "project": "org.sonarsource.sonarqube:sonarqube",
188           }
189         }
190         updateQuery={[Function]}
191       />
192     </div>
193   </div>
194 </div>
195 `;