]> source.dussan.org Git - sonarqube.git/blob
8cc911548dca2d71f05cf6bec60e7668980a0680
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for overview graphs 1`] = `
4 <BubblePopup
5   customClass="bubble-popup-right"
6   position={
7     Object {
8       "left": 476,
9       "top": 50,
10       "width": 250,
11     }
12   }
13 >
14   <div
15     className="project-activity-graph-tooltip"
16   >
17     <div
18       className="project-activity-graph-tooltip-title spacer-bottom"
19     >
20       <FormattedDate
21         date={2011-10-01T22:01:00.000Z}
22         format="LL"
23       />
24     </div>
25     <table
26       className="width-100"
27     >
28       <tbody>
29         <GraphsTooltipsContentOverview
30           measuresHistory={Array []}
31           serie={
32             Object {
33               "data": Array [
34                 Object {
35                   "x": "2011-10-01T22:01:00.000Z",
36                   "y": 18,
37                 },
38                 Object {
39                   "x": "2011-10-25T10:27:41.000Z",
40                   "y": 15,
41                 },
42               ],
43               "name": "code_smells",
44               "style": 1,
45               "translatedName": "metric.code_smells.name",
46             }
47           }
48           tooltipIdx={0}
49           value="Formated.18"
50         />
51         <GraphsTooltipsContentOverview
52           measuresHistory={Array []}
53           serie={
54             Object {
55               "data": Array [
56                 Object {
57                   "x": "2011-10-01T22:01:00.000Z",
58                   "y": 3,
59                 },
60                 Object {
61                   "x": "2011-10-25T10:27:41.000Z",
62                   "y": 0,
63                 },
64               ],
65               "name": "bugs",
66               "style": 0,
67               "translatedName": "metric.bugs.name",
68             }
69           }
70           tooltipIdx={0}
71           value="Formated.3"
72         />
73         <GraphsTooltipsContentOverview
74           measuresHistory={Array []}
75           serie={
76             Object {
77               "data": Array [
78                 Object {
79                   "x": "2011-10-01T22:01:00.000Z",
80                   "y": 0,
81                 },
82                 Object {
83                   "x": "2011-10-25T10:27:41.000Z",
84                   "y": 1,
85                 },
86               ],
87               "name": "vulnerabilities",
88               "style": 2,
89               "translatedName": "metric.vulnerabilities.name",
90             }
91           }
92           tooltipIdx={0}
93           value="Formated.0"
94         />
95       </tbody>
96     </table>
97   </div>
98 </BubblePopup>
99 `;
100
101 exports[`should render correctly for random graphs 1`] = `
102 <BubblePopup
103   customClass="bubble-popup-right"
104   position={
105     Object {
106       "left": 476,
107       "top": 50,
108       "width": 250,
109     }
110   }
111 >
112   <div
113     className="project-activity-graph-tooltip"
114   >
115     <div
116       className="project-activity-graph-tooltip-title spacer-bottom"
117     >
118       <FormattedDate
119         date={2011-10-25T10:27:41.000Z}
120         format="LL"
121       />
122     </div>
123     <table
124       className="width-100"
125     >
126       <tbody>
127         <GraphsTooltipsContent
128           serie={
129             Object {
130               "data": Array [
131                 Object {
132                   "x": "2011-10-01T22:01:00.000Z",
133                   "y": 18,
134                 },
135                 Object {
136                   "x": "2011-10-25T10:27:41.000Z",
137                   "y": 15,
138                 },
139               ],
140               "name": "code_smells",
141               "style": 1,
142               "translatedName": "metric.code_smells.name",
143             }
144           }
145           translatedName="metric.code_smells.name"
146           value="Formated.15"
147         />
148         <GraphsTooltipsContent
149           serie={
150             Object {
151               "data": Array [
152                 Object {
153                   "x": "2011-10-01T22:01:00.000Z",
154                   "y": 3,
155                 },
156                 Object {
157                   "x": "2011-10-25T10:27:41.000Z",
158                   "y": 0,
159                 },
160               ],
161               "name": "bugs",
162               "style": 0,
163               "translatedName": "metric.bugs.name",
164             }
165           }
166           translatedName="metric.bugs.name"
167           value="Formated.0"
168         />
169         <GraphsTooltipsContent
170           serie={
171             Object {
172               "data": Array [
173                 Object {
174                   "x": "2011-10-01T22:01:00.000Z",
175                   "y": 0,
176                 },
177                 Object {
178                   "x": "2011-10-25T10:27:41.000Z",
179                   "y": 1,
180                 },
181               ],
182               "name": "vulnerabilities",
183               "style": 2,
184               "translatedName": "metric.vulnerabilities.name",
185             }
186           }
187           translatedName="Vulnerabilities"
188           value="Formated.1"
189         />
190       </tbody>
191     </table>
192   </div>
193 </BubblePopup>
194 `;