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