]> source.dussan.org Git - sonarqube.git/blob
5c0af0d142523dc24636fbac472073b578f2e04b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should correctly render a graph 1`] = `
4 <div
5   className="activity-graph-container flex-grow display-flex-column display-flex-stretch display-flex-justify-center"
6 >
7   <GraphsLegendStatic
8     series={
9       Array [
10         Object {
11           "data": Array [
12             Object {
13               "x": 2016-10-27T14:33:50.000Z,
14               "y": 5,
15             },
16             Object {
17               "x": 2016-10-27T10:21:15.000Z,
18               "y": 16,
19             },
20             Object {
21               "x": 2016-10-26T10:17:29.000Z,
22               "y": 12,
23             },
24           ],
25           "name": "bugs",
26           "translatedName": "metric.bugs.name",
27           "type": "INT",
28         },
29       ]
30     }
31   />
32   <div
33     className="flex-1"
34   >
35     <AutoSizer>
36       <Component />
37     </AutoSizer>
38   </div>
39   <div
40     className="spacer-top big-spacer-bottom small"
41   >
42     <div
43       className="display-flex-justify-center"
44     >
45       <ModalButton
46         modal={[Function]}
47       >
48         <Component />
49       </ModalButton>
50     </div>
51   </div>
52 </div>
53 `;
54
55 exports[`should correctly render a graph: custom 1`] = `
56 <div
57   className="activity-graph-container flex-grow display-flex-column display-flex-stretch display-flex-justify-center"
58 >
59   <GraphsLegendCustom
60     removeMetric={[MockFunction]}
61     series={
62       Array [
63         Object {
64           "data": Array [
65             Object {
66               "x": 2016-10-27T14:33:50.000Z,
67               "y": 5,
68             },
69             Object {
70               "x": 2016-10-27T10:21:15.000Z,
71               "y": 16,
72             },
73             Object {
74               "x": 2016-10-26T10:17:29.000Z,
75               "y": 12,
76             },
77           ],
78           "name": "bugs",
79           "translatedName": "metric.bugs.name",
80           "type": "INT",
81         },
82       ]
83     }
84   />
85   <div
86     className="flex-1"
87   >
88     <AutoSizer>
89       <Component />
90     </AutoSizer>
91   </div>
92   <div
93     className="spacer-top big-spacer-bottom small"
94   >
95     <div
96       className="display-flex-justify-center"
97     >
98       <ModalButton
99         modal={[Function]}
100       >
101         <Component />
102       </ModalButton>
103     </div>
104   </div>
105 </div>
106 `;