]> source.dussan.org Git - sonarqube.git/blob
0fa696ab435f3a7e073db2c8ae458c181d08c266
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly filter history on dates 1`] = `
4 Object {
5   "filteredSeries": Array [
6     Object {
7       "data": Array [],
8       "name": "code_smells",
9       "style": 1,
10       "translatedName": "metric.code_smells.name",
11     },
12   ],
13   "series": Array [
14     Object {
15       "data": Array [
16         Object {
17           "x": 2016-10-26T10:17:29.000Z,
18           "y": 2286,
19         },
20         Object {
21           "x": 2016-10-27T10:21:15.000Z,
22           "y": 1749,
23         },
24         Object {
25           "x": 2016-10-27T14:33:50.000Z,
26           "y": 500,
27         },
28       ],
29       "name": "code_smells",
30       "style": 1,
31       "translatedName": "metric.code_smells.name",
32     },
33   ],
34 }
35 `;
36
37 exports[`should render correctly the graph and legends 1`] = `
38 <div
39   className="project-activity-layout-page-main-inner boxed-group boxed-group-inner"
40 >
41   <ProjectActivityGraphsHeader
42     graph="overview"
43     updateQuery={[Function]}
44   />
45   <StaticGraphs
46     analyses={
47       Array [
48         Object {
49           "date": "2016-10-27T16:33:50+0200",
50           "events": Array [
51             Object {
52               "category": "VERSION",
53               "key": "E1",
54               "name": "6.5-SNAPSHOT",
55             },
56           ],
57           "key": "A1",
58         },
59         Object {
60           "date": "2016-10-27T12:21:15+0200",
61           "events": Array [],
62           "key": "A2",
63         },
64         Object {
65           "date": "2016-10-26T12:17:29+0200",
66           "events": Array [
67             Object {
68               "category": "VERSION",
69               "key": "E2",
70               "name": "6.4",
71             },
72             Object {
73               "category": "OTHER",
74               "key": "E3",
75               "name": "foo",
76             },
77           ],
78           "key": "A3",
79         },
80       ]
81     }
82     eventFilter=""
83     filteredSeries={
84       Array [
85         Object {
86           "data": Array [
87             Object {
88               "x": 2016-10-26T10:17:29.000Z,
89               "y": 2286,
90             },
91             Object {
92               "x": 2016-10-27T10:21:15.000Z,
93               "y": 1749,
94             },
95             Object {
96               "x": 2016-10-27T14:33:50.000Z,
97               "y": 500,
98             },
99           ],
100           "name": "code_smells",
101           "style": 1,
102           "translatedName": "metric.code_smells.name",
103         },
104       ]
105     }
106     leakPeriodDate="2017-05-16T13:50:02+0200"
107     loading={false}
108     metricsType="INT"
109     project="org.sonarsource.sonarqube:sonarqube"
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   />
135 </div>
136 `;