]> source.dussan.org Git - sonarqube.git/blob
df37dbbcc683e1a55140b56c58ae6fca0b38227b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: can subscribe, not subscribed 1`] = `
4 <Dropdown
5   overlay={
6     <ul
7       className="menu"
8     >
9       <li>
10         <a
11           download="MyProject - PDF Report.pdf"
12           href="/api/governance_reports/download?componentKey=my-project"
13           rel="noopener noreferrer"
14           target="_blank"
15         >
16           download_verb
17         </a>
18       </li>
19       <li>
20         <a
21           href="#"
22           onClick={[MockFunction]}
23         >
24           component_report.subscribe_x.report.frequency.weekly
25         </a>
26       </li>
27     </ul>
28   }
29 >
30   <Button
31     className="dropdown-toggle"
32   >
33     component_report.report.qualifier.VW
34     <DropdownIcon
35       className="spacer-left icon-half-transparent"
36     />
37   </Button>
38 </Dropdown>
39 `;
40
41 exports[`should render correctly: can subscribe, subscribed 1`] = `
42 <Dropdown
43   overlay={
44     <ul
45       className="menu"
46     >
47       <li>
48         <a
49           download="MyProject - PDF Report.pdf"
50           href="/api/governance_reports/download?componentKey=my-project"
51           rel="noopener noreferrer"
52           target="_blank"
53         >
54           download_verb
55         </a>
56       </li>
57       <li>
58         <a
59           href="#"
60           onClick={[MockFunction]}
61         >
62           component_report.unsubscribe_x.report.frequency.weekly
63         </a>
64       </li>
65     </ul>
66   }
67 >
68   <Button
69     className="dropdown-toggle"
70   >
71     component_report.report.qualifier.VW
72     <DropdownIcon
73       className="spacer-left icon-half-transparent"
74     />
75   </Button>
76 </Dropdown>
77 `;
78
79 exports[`should render correctly: cannot subscribe 1`] = `
80 <a
81   download="MyProject - PDF Report.pdf"
82   href="/api/governance_reports/download?componentKey=my-project"
83   rel="noopener noreferrer"
84   target="_blank"
85 >
86   component_report.download.qualifier.vw
87 </a>
88 `;
89
90 exports[`should render correctly: current user without email 1`] = `
91 <Dropdown
92   overlay={
93     <ul
94       className="menu"
95     >
96       <li>
97         <a
98           download="MyProject - PDF Report.pdf"
99           href="/api/governance_reports/download?componentKey=my-project"
100           rel="noopener noreferrer"
101           target="_blank"
102         >
103           download_verb
104         </a>
105       </li>
106       <li>
107         <span
108           className="text-muted-2"
109         >
110           component_report.no_email_to_subscribe
111         </span>
112       </li>
113     </ul>
114   }
115 >
116   <Button
117     className="dropdown-toggle"
118   >
119     component_report.report.qualifier.VW
120     <DropdownIcon
121       className="spacer-left icon-half-transparent"
122     />
123   </Button>
124 </Dropdown>
125 `;
126
127 exports[`should render correctly: not a portfolio 1`] = `
128 <a
129   download="MyProject - PDF Report.pdf"
130   href="/api/governance_reports/download?componentKey=my-project"
131   rel="noopener noreferrer"
132   target="_blank"
133 >
134   component_report.download.qualifier.trk
135 </a>
136 `;