]> source.dussan.org Git - sonarqube.git/blob
06e5621c923a3356dbf1f015cfef4a38f071d95b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should correctly filter events 1`] = `
4 Array [
5   Object {
6     "className": "VERSION",
7     "date": 2016-10-26T10:17:29.000Z,
8     "name": "6.4",
9   },
10   Object {
11     "className": "VERSION",
12     "date": 2016-10-27T14:33:50.000Z,
13     "name": "6.5-SNAPSHOT",
14   },
15 ]
16 `;
17
18 exports[`should correctly filter events 2`] = `
19 Array [
20   Object {
21     "className": "OTHER",
22     "date": 2016-10-26T10:17:29.000Z,
23     "name": "foo",
24   },
25 ]
26 `;
27
28 exports[`should correctly render a graph 1`] = `
29 <div
30   className="project-activity-graph-container"
31 >
32   <GraphsLegendStatic
33     series={
34       Array [
35         Object {
36           "data": Array [
37             Object {
38               "x": 2016-10-27T14:33:50.000Z,
39               "y": 5,
40             },
41             Object {
42               "x": 2016-10-27T10:21:15.000Z,
43               "y": 16,
44             },
45             Object {
46               "x": 2016-10-26T10:17:29.000Z,
47               "y": 12,
48             },
49           ],
50           "name": "bugs",
51           "style": 0,
52           "translatedName": "metric.bugs.name",
53         },
54       ]
55     }
56   />
57   <div
58     className="project-activity-graph"
59   >
60     <AutoSizer
61       onResize={[Function]}
62     />
63   </div>
64 </div>
65 `;
66
67 exports[`should show a loading view 1`] = `
68 <div
69   className="project-activity-graph-container"
70 >
71   <div
72     className="text-center"
73   >
74     <i
75       className="spinner"
76     />
77   </div>
78 </div>
79 `;
80
81 exports[`should show that there is no data 1`] = `
82 <div
83   className="project-activity-graph-container"
84 >
85   <div
86     className="note text-center"
87   >
88     component_measures.no_history
89   </div>
90 </div>
91 `;