]> source.dussan.org Git - sonarqube.git/blob
74846968a2317a7d1183ff4a023be45b7f18161a
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should show administration menu if the user has the rights 1`] = `
4 <ul
5   className="global-navbar-menu"
6 >
7   <li>
8     <Link
9       activeClassName=""
10       onlyActiveOnIndex={false}
11       style={Object {}}
12       to="/projects"
13     >
14       projects.page
15     </Link>
16   </li>
17   <li>
18     <Link
19       className=""
20       onlyActiveOnIndex={false}
21       style={Object {}}
22       to={
23         Object {
24           "pathname": "/issues",
25           "query": Object {
26             "resolved": "false",
27           },
28         }
29       }
30     >
31       issues.page
32     </Link>
33   </li>
34   <li>
35     <Link
36       onlyActiveOnIndex={false}
37       style={Object {}}
38       to="/coding_rules"
39     >
40       coding_rules.page
41     </Link>
42   </li>
43   <li>
44     <Link
45       activeClassName="active"
46       onlyActiveOnIndex={false}
47       style={Object {}}
48       to="/profiles"
49     >
50       quality_profiles.page
51     </Link>
52   </li>
53   <li>
54     <Link
55       activeClassName="active"
56       onlyActiveOnIndex={false}
57       style={Object {}}
58       to={
59         Object {
60           "pathname": "/quality_gates",
61         }
62       }
63     >
64       quality_gates.page
65     </Link>
66   </li>
67   <li>
68     <Link
69       activeClassName="active"
70       onlyActiveOnIndex={false}
71       style={Object {}}
72       to="/admin"
73     >
74       layout.settings
75     </Link>
76   </li>
77 </ul>
78 `;
79
80 exports[`should work with extensions 1`] = `
81 <Dropdown
82   overlay={
83     <ul
84       className="menu"
85     >
86       <li>
87         <Link
88           onlyActiveOnIndex={false}
89           style={Object {}}
90           to="/extension/foo"
91         >
92           Foo
93         </Link>
94       </li>
95     </ul>
96   }
97   tagName="li"
98 >
99   <Component />
100 </Dropdown>
101 `;