]> source.dussan.org Git - sonarqube.git/blob
35f80d6ab41871baee476128e124a055003ecb9b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders meta for long-living branch 1`] = `
4 <div
5   className="navbar-context-meta"
6 >
7   <div
8     className="spacer-left text-ellipsis"
9   >
10     <DateTimeFormatter
11       date="2017-01-02T00:00:00.000Z"
12     />
13   </div>
14   <Tooltip
15     mouseEnterDelay={0.5}
16     overlay="version 0.0.1"
17   >
18     <div
19       className="spacer-left text-limited"
20     >
21       version
22        
23       0.0.1
24     </div>
25   </Tooltip>
26 </div>
27 `;
28
29 exports[`renders meta for pull request 1`] = `
30 <div
31   className="navbar-context-meta"
32 >
33   <div
34     className="spacer-left text-ellipsis"
35   >
36     <DateTimeFormatter
37       date="2017-01-02T00:00:00.000Z"
38     />
39   </div>
40   <div
41     className="navbar-context-meta-secondary display-inline-flex-center"
42   >
43     <a
44       className="display-inline-flex-center big-spacer-right"
45       href="https://example.com/pull/1234"
46       rel="noopener noreferrer"
47       target="_blank"
48     >
49       branches.see_the_pr
50       <DetachIcon
51         className="little-spacer-left"
52         size={12}
53       />
54     </a>
55     <BranchStatus
56       branchLike={
57         Object {
58           "base": "master",
59           "branch": "feature",
60           "key": "1234",
61           "status": Object {
62             "bugs": 0,
63             "codeSmells": 2,
64             "qualityGateStatus": "ERROR",
65             "vulnerabilities": 3,
66           },
67           "title": "Feature PR",
68           "url": "https://example.com/pull/1234",
69         }
70       }
71     />
72   </div>
73 </div>
74 `;
75
76 exports[`renders status of short-living branch 1`] = `
77 <div
78   className="navbar-context-meta"
79 >
80   <div
81     className="spacer-left text-ellipsis"
82   >
83     <DateTimeFormatter
84       date="2017-01-02T00:00:00.000Z"
85     />
86   </div>
87   <div
88     className="navbar-context-meta-secondary display-inline-flex-center"
89   >
90     <BranchStatus
91       branchLike={
92         Object {
93           "isMain": false,
94           "mergeBranch": "master",
95           "name": "feature",
96           "status": Object {
97             "bugs": 0,
98             "codeSmells": 2,
99             "qualityGateStatus": "ERROR",
100             "vulnerabilities": 3,
101           },
102           "type": "SHORT",
103         }
104       }
105     />
106     <span
107       className="vertical-separator big-spacer-left big-spacer-right"
108     />
109     <BranchMeasures
110       branchLike={
111         Object {
112           "isMain": false,
113           "mergeBranch": "master",
114           "name": "feature",
115           "status": Object {
116             "bugs": 0,
117             "codeSmells": 2,
118             "qualityGateStatus": "ERROR",
119             "vulnerabilities": 3,
120           },
121           "type": "SHORT",
122         }
123       }
124       componentKey="foo"
125       measures={
126         Array [
127           Object {
128             "metric": "new_coverage",
129             "periods": Array [
130               Object {
131                 "index": 1,
132                 "value": "95.9943",
133               },
134             ],
135             "value": "0",
136           },
137           Object {
138             "metric": "new_duplicated_lines_density",
139             "periods": Array [
140               Object {
141                 "index": 1,
142                 "value": "3.5",
143               },
144             ],
145           },
146         ]
147       }
148     />
149   </div>
150 </div>
151 `;