]> source.dussan.org Git - sonarqube.git/blob
527e390ba6b9b2f3e02cde26b5011295ab6a06b9
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for SQ 1`] = `
4 <div
5   className="overview-quality-gate-badge-large small failed"
6 >
7   <div
8     className="display-flex-center"
9   >
10     <span>
11       overview.on_new_code_long
12     </span>
13     <HelpTooltip
14       className="little-spacer-left"
15       overlay={
16         <FormattedMessage
17           defaultMessage="overview.quality_gate.conditions_on_new_code"
18           id="overview.quality_gate.conditions_on_new_code"
19           values={
20             Object {
21               "link": <Link
22                 to={
23                   Object {
24                     "pathname": "/quality_gates/show/30",
25                   }
26                 }
27               >
28                 overview.quality_gate
29               </Link>,
30             }
31           }
32         />
33       }
34     >
35       <HelpIcon
36         fill="rgba(255,255,255,0.62)"
37         size={12}
38       />
39     </HelpTooltip>
40   </div>
41   <h3
42     className="huge-spacer-top huge"
43   >
44     metric.level.ERROR
45   </h3>
46 </div>
47 `;
48
49 exports[`should render correctly for SQ 2`] = `
50 <div
51   className="overview-quality-gate-badge-large small success"
52 >
53   <div
54     className="display-flex-center"
55   >
56     <span>
57       overview.on_new_code_long
58     </span>
59     <HelpTooltip
60       className="little-spacer-left"
61       overlay={
62         <FormattedMessage
63           defaultMessage="overview.quality_gate.conditions_on_new_code"
64           id="overview.quality_gate.conditions_on_new_code"
65           values={
66             Object {
67               "link": <Link
68                 to={
69                   Object {
70                     "pathname": "/quality_gates/show/30",
71                   }
72                 }
73               >
74                 overview.quality_gate
75               </Link>,
76             }
77           }
78         />
79       }
80     >
81       <HelpIcon
82         fill="rgba(255,255,255,0.62)"
83         size={12}
84       />
85     </HelpTooltip>
86   </div>
87   <h3
88     className="huge-spacer-top huge"
89   >
90     metric.level.OK
91   </h3>
92 </div>
93 `;