]> source.dussan.org Git - sonarqube.git/blob
920f463b1eaa424516e43a5506bd2c0a82b4d24d
[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     graph="overview"
9     updateQuery={[Function]}
10   />
11   <StaticGraphs
12     analyses={
13       Array [
14         Object {
15           "date": "2016-10-27T16:33:50+0200",
16           "events": Array [
17             Object {
18               "category": "VERSION",
19               "key": "E1",
20               "name": "6.5-SNAPSHOT",
21             },
22           ],
23           "key": "A1",
24         },
25         Object {
26           "date": "2016-10-27T12:21:15+0200",
27           "events": Array [],
28           "key": "A2",
29         },
30         Object {
31           "date": "2016-10-26T12:17:29+0200",
32           "events": Array [
33             Object {
34               "category": "VERSION",
35               "key": "E2",
36               "name": "6.4",
37             },
38             Object {
39               "category": "OTHER",
40               "key": "E3",
41               "name": "foo",
42             },
43           ],
44           "key": "A3",
45         },
46       ]
47     }
48     eventFilter=""
49     graphEndDate={2016-10-27T14:33:50.000Z}
50     graphStartDate={2016-10-26T10:17:29.000Z}
51     leakPeriodDate="2017-05-16T13:50:02+0200"
52     loading={false}
53     metricsType="INT"
54     project="org.sonarsource.sonarqube:sonarqube"
55     series={
56       Array [
57         Object {
58           "data": Array [
59             Object {
60               "x": 2016-10-26T10:17:29.000Z,
61               "y": 2286,
62             },
63             Object {
64               "x": 2016-10-27T10:21:15.000Z,
65               "y": 1749,
66             },
67             Object {
68               "x": 2016-10-27T14:33:50.000Z,
69               "y": 500,
70             },
71           ],
72           "name": "code_smells",
73           "style": 1,
74           "translatedName": "metric.code_smells.name",
75         },
76       ]
77     }
78     showAreas={false}
79     updateGraphZoom={[Function]}
80   />
81   <GraphsZoom
82     graphEndDate={2016-10-27T14:33:50.000Z}
83     graphStartDate={2016-10-26T10:17:29.000Z}
84     leakPeriodDate="2017-05-16T13:50:02+0200"
85     loading={false}
86     metricsType="INT"
87     series={
88       Array [
89         Object {
90           "data": Array [
91             Object {
92               "x": 2016-10-26T10:17:29.000Z,
93               "y": 2286,
94             },
95             Object {
96               "x": 2016-10-27T10:21:15.000Z,
97               "y": 1749,
98             },
99             Object {
100               "x": 2016-10-27T14:33:50.000Z,
101               "y": 500,
102             },
103           ],
104           "name": "code_smells",
105           "style": 1,
106           "translatedName": "metric.code_smells.name",
107         },
108       ]
109     }
110     showAreas={false}
111     updateGraphZoom={[Function]}
112   />
113 </div>
114 `;
115
116 exports[`should render correctly with filter history on dates 1`] = `
117 Object {
118   "series": Array [
119     Object {
120       "data": Array [
121         Object {
122           "x": 2016-10-26T10:17:29.000Z,
123           "y": 2286,
124         },
125         Object {
126           "x": 2016-10-27T10:21:15.000Z,
127           "y": 1749,
128         },
129         Object {
130           "x": 2016-10-27T14:33:50.000Z,
131           "y": 500,
132         },
133       ],
134       "name": "code_smells",
135       "style": 1,
136       "translatedName": "metric.code_smells.name",
137     },
138   ],
139 }
140 `;