]> source.dussan.org Git - sonarqube.git/blob
7fa450f12c8cd451556cdb0086e5406b14202d70
[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         updateQuery={[Function]}
121       />
122     </div>
123     <div
124       className="project-activity-layout-page-main"
125     >
126       <ProjectActivityGraphs
127         analyses={
128           Array [
129             Object {
130               "date": 2016-10-27T14:33:50.000Z,
131               "events": Array [
132                 Object {
133                   "category": "VERSION",
134                   "key": "E1",
135                   "name": "6.5-SNAPSHOT",
136                 },
137               ],
138               "key": "A1",
139             },
140             Object {
141               "date": 2016-10-27T10:21:15.000Z,
142               "events": Array [],
143               "key": "A2",
144             },
145             Object {
146               "date": 2016-10-26T10:17:29.000Z,
147               "events": Array [
148                 Object {
149                   "category": "VERSION",
150                   "key": "E2",
151                   "name": "6.4",
152                 },
153                 Object {
154                   "category": "OTHER",
155                   "key": "E3",
156                   "name": "foo",
157                 },
158               ],
159               "key": "A3",
160             },
161           ]
162         }
163         leakPeriodDate={2017-05-16T11:50:02.000Z}
164         loading={false}
165         measuresHistory={
166           Array [
167             Object {
168               "history": Array [
169                 Object {
170                   "date": 2016-03-04T09:40:12.000Z,
171                   "value": "1749",
172                 },
173                 Object {
174                   "date": 2016-03-04T17:40:16.000Z,
175                   "value": "2286",
176                 },
177               ],
178               "metric": "code_smells",
179             },
180           ]
181         }
182         metrics={
183           Array [
184             Object {
185               "key": "code_smells",
186               "name": "Code Smells",
187               "type": "INT",
188             },
189           ]
190         }
191         metricsType="INT"
192         query={
193           Object {
194             "category": "",
195             "graph": "overview",
196             "project": "org.sonarsource.sonarqube:sonarqube",
197           }
198         }
199         updateQuery={[Function]}
200       />
201     </div>
202   </div>
203 </div>
204 `;