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