]> source.dussan.org Git - sonarqube.git/blob
b7d7f3fadc749b16b43a79fa0784cd77ff19514e
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should correctly render a graph 1`] = `
4 <div
5   className="display-flex-justify-center display-flex-column display-flex-stretch flex-grow"
6 >
7   <GraphHistory
8     ariaLabel="project_activity.graphs.explanation_x.metric.bugs.name"
9     events={Array []}
10     graph="issues"
11     isCustom={false}
12     key="0"
13     leakPeriodDate={2017-05-16T11:50:02.000Z}
14     measuresHistory={Array []}
15     metricsType="INT"
16     removeCustomMetric={[Function]}
17     series={
18       Array [
19         Object {
20           "data": Array [
21             Object {
22               "x": 2016-10-27T14:33:50.000Z,
23               "y": 5,
24             },
25             Object {
26               "x": 2016-10-27T10:21:15.000Z,
27               "y": 16,
28             },
29             Object {
30               "x": 2016-10-26T10:17:29.000Z,
31               "y": 12,
32             },
33           ],
34           "name": "bugs",
35           "translatedName": "metric.bugs.name",
36           "type": "INT",
37         },
38       ]
39     }
40     showAreas={false}
41     updateGraphZoom={[Function]}
42     updateSelectedDate={[Function]}
43     updateTooltip={[Function]}
44   />
45 </div>
46 `;
47
48 exports[`should correctly render multiple graphs 1`] = `
49 <div
50   className="display-flex-justify-center display-flex-column display-flex-stretch flex-grow"
51 >
52   <GraphHistory
53     ariaLabel="project_activity.graphs.explanation_x.metric.bugs.name"
54     events={Array []}
55     graph="issues"
56     isCustom={false}
57     key="0"
58     leakPeriodDate={2017-05-16T11:50:02.000Z}
59     measuresHistory={Array []}
60     metricsType="INT"
61     removeCustomMetric={[Function]}
62     series={
63       Array [
64         Object {
65           "data": Array [
66             Object {
67               "x": 2016-10-27T14:33:50.000Z,
68               "y": 5,
69             },
70             Object {
71               "x": 2016-10-27T10:21:15.000Z,
72               "y": 16,
73             },
74             Object {
75               "x": 2016-10-26T10:17:29.000Z,
76               "y": 12,
77             },
78           ],
79           "name": "bugs",
80           "translatedName": "metric.bugs.name",
81           "type": "INT",
82         },
83       ]
84     }
85     showAreas={false}
86     updateGraphZoom={[Function]}
87     updateSelectedDate={[Function]}
88     updateTooltip={[Function]}
89   />
90   <GraphHistory
91     ariaLabel="project_activity.graphs.explanation_x.metric.bugs.name"
92     events={Array []}
93     graph="issues"
94     isCustom={false}
95     key="1"
96     leakPeriodDate={2017-05-16T11:50:02.000Z}
97     measuresHistory={Array []}
98     metricsType="INT"
99     removeCustomMetric={[Function]}
100     series={
101       Array [
102         Object {
103           "data": Array [
104             Object {
105               "x": 2016-10-27T14:33:50.000Z,
106               "y": 5,
107             },
108             Object {
109               "x": 2016-10-27T10:21:15.000Z,
110               "y": 16,
111             },
112             Object {
113               "x": 2016-10-26T10:17:29.000Z,
114               "y": 12,
115             },
116           ],
117           "name": "bugs",
118           "translatedName": "metric.bugs.name",
119           "type": "INT",
120         },
121       ]
122     }
123     showAreas={false}
124     updateGraphZoom={[Function]}
125     updateSelectedDate={[Function]}
126     updateTooltip={[Function]}
127   />
128 </div>
129 `;
130
131 exports[`should show that there is no history data 1`] = `
132 <div
133   className="activity-graph-container flex-grow display-flex-column display-flex-stretch display-flex-justify-center"
134 >
135   <div
136     className="display-flex-center display-flex-justify-center"
137   >
138     <img
139       alt=""
140       className="spacer-right"
141       height={52}
142       src="/images/activity-chart.svg"
143     />
144     <div
145       className="big-spacer-left big text-muted"
146       style={
147         Object {
148           "maxWidth": 300,
149         }
150       }
151     >
152       component_measures.no_history
153     </div>
154   </div>
155 </div>
156 `;
157
158 exports[`should show that there is no history data 2`] = `
159 <div
160   className="activity-graph-container flex-grow display-flex-column display-flex-stretch display-flex-justify-center"
161 >
162   <div
163     className="display-flex-center display-flex-justify-center"
164   >
165     <img
166       alt=""
167       className="spacer-right"
168       height={52}
169       src="/images/activity-chart.svg"
170     />
171     <div
172       className="big-spacer-left big text-muted"
173       style={
174         Object {
175           "maxWidth": 300,
176         }
177       }
178     >
179       component_measures.no_history
180     </div>
181   </div>
182 </div>
183 `;