]> source.dussan.org Git - sonarqube.git/blob
7aaf0a0268dddc630259d94e89db6df9837f7b74
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly the graph and legends 1`] = `
4 <div
5   className="project-activity-layout-page-main-inner boxed-group boxed-group-inner"
6 >
7   <ProjectActivityGraphsHeader
8     addCustomMetric={[Function]}
9     graph="overview"
10     updateGraph={[Function]}
11   />
12   <GraphsHistory
13     analyses={
14       Array [
15         Object {
16           "date": "2016-10-27T16:33:50+0200",
17           "events": Array [
18             Object {
19               "category": "VERSION",
20               "key": "E1",
21               "name": "6.5-SNAPSHOT",
22             },
23           ],
24           "key": "A1",
25         },
26         Object {
27           "date": "2016-10-27T12:21:15+0200",
28           "events": Array [],
29           "key": "A2",
30         },
31         Object {
32           "date": "2016-10-26T12:17:29+0200",
33           "events": Array [
34             Object {
35               "category": "VERSION",
36               "key": "E2",
37               "name": "6.4",
38             },
39             Object {
40               "category": "OTHER",
41               "key": "E3",
42               "name": "foo",
43             },
44           ],
45           "key": "A3",
46         },
47       ]
48     }
49     eventFilter=""
50     graph="overview"
51     graphEndDate={null}
52     graphStartDate={null}
53     leakPeriodDate="2017-05-16T13:50:02+0200"
54     loading={false}
55     measuresHistory={
56       Array [
57         Object {
58           "history": Array [
59             Object {
60               "date": 2016-10-26T10:17:29.000Z,
61               "value": "2286",
62             },
63             Object {
64               "date": 2016-10-27T10:21:15.000Z,
65               "value": "1749",
66             },
67             Object {
68               "date": 2016-10-27T14:33:50.000Z,
69               "value": "500",
70             },
71           ],
72           "metric": "code_smells",
73         },
74       ]
75     }
76     metricsType="INT"
77     removeCustomMetric={[Function]}
78     series={
79       Array [
80         Object {
81           "data": Array [
82             Object {
83               "x": 2016-10-26T10:17:29.000Z,
84               "y": 2286,
85             },
86             Object {
87               "x": 2016-10-27T10:21:15.000Z,
88               "y": 1749,
89             },
90             Object {
91               "x": 2016-10-27T14:33:50.000Z,
92               "y": 500,
93             },
94           ],
95           "name": "code_smells",
96           "style": "1",
97           "translatedName": "metric.code_smells.name",
98         },
99       ]
100     }
101     updateGraphZoom={[Function]}
102     updateSelectedDate={[Function]}
103   />
104   <GraphsZoom
105     graphEndDate={null}
106     graphStartDate={null}
107     leakPeriodDate="2017-05-16T13:50:02+0200"
108     loading={false}
109     metricsType="INT"
110     series={
111       Array [
112         Object {
113           "data": Array [
114             Object {
115               "x": 2016-10-26T10:17:29.000Z,
116               "y": 2286,
117             },
118             Object {
119               "x": 2016-10-27T10:21:15.000Z,
120               "y": 1749,
121             },
122             Object {
123               "x": 2016-10-27T14:33:50.000Z,
124               "y": 500,
125             },
126           ],
127           "name": "code_smells",
128           "style": "1",
129           "translatedName": "metric.code_smells.name",
130         },
131       ]
132     }
133     showAreas={false}
134     updateGraphZoom={[Function]}
135   />
136 </div>
137 `;
138
139 exports[`should render correctly with filter history on dates 1`] = `
140 Object {
141   "graphEndDate": null,
142   "graphStartDate": "2016-10-27T12:21:15+0200",
143   "series": Array [
144     Object {
145       "data": Array [
146         Object {
147           "x": 2016-10-26T10:17:29.000Z,
148           "y": 2286,
149         },
150         Object {
151           "x": 2016-10-27T10:21:15.000Z,
152           "y": 1749,
153         },
154         Object {
155           "x": 2016-10-27T14:33:50.000Z,
156           "y": 500,
157         },
158       ],
159       "name": "code_smells",
160       "style": "1",
161       "translatedName": "metric.code_smells.name",
162     },
163   ],
164 }
165 `;