]> source.dussan.org Git - sonarqube.git/blob
bb21d44b23e5387d17b47c86a9459ced8b3576a2
[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="nav navbar-nav"
6 >
7   <li>
8     <Link
9       activeClassName="active"
10       onlyActiveOnIndex={false}
11       style={Object {}}
12       to="/projects"
13     >
14       projects.page
15     </Link>
16   </li>
17   <li>
18     <Link
19       onlyActiveOnIndex={false}
20       style={Object {}}
21       to={
22         Object {
23           "pathname": "/issues",
24           "query": Object {
25             "resolved": "false",
26           },
27         }
28       }
29     >
30       issues.page
31     </Link>
32   </li>
33   <li>
34     <Link
35       className={null}
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="/quality_gates"
59     >
60       quality_gates.page
61     </Link>
62   </li>
63   <li>
64     <Link
65       activeClassName="active"
66       className="navbar-admin-link"
67       onlyActiveOnIndex={false}
68       style={Object {}}
69       to="/settings"
70     >
71       layout.settings
72     </Link>
73   </li>
74 </ul>
75 `;
76
77 exports[`should work with extensions 1`] = `
78 <ul
79   className="nav navbar-nav"
80 >
81   <li>
82     <Link
83       activeClassName="active"
84       onlyActiveOnIndex={false}
85       style={Object {}}
86       to="/projects"
87     >
88       projects.page
89     </Link>
90   </li>
91   <li>
92     <Link
93       onlyActiveOnIndex={false}
94       style={Object {}}
95       to={
96         Object {
97           "pathname": "/issues",
98           "query": Object {
99             "resolved": "false",
100           },
101         }
102       }
103     >
104       issues.page
105     </Link>
106   </li>
107   <li>
108     <Link
109       className={null}
110       onlyActiveOnIndex={false}
111       style={Object {}}
112       to="/coding_rules"
113     >
114       coding_rules.page
115     </Link>
116   </li>
117   <li>
118     <Link
119       activeClassName="active"
120       onlyActiveOnIndex={false}
121       style={Object {}}
122       to="/profiles"
123     >
124       quality_profiles.page
125     </Link>
126   </li>
127   <li>
128     <Link
129       activeClassName="active"
130       onlyActiveOnIndex={false}
131       style={Object {}}
132       to="/quality_gates"
133     >
134       quality_gates.page
135     </Link>
136   </li>
137   <li
138     className="dropdown"
139   >
140     <a
141       className="dropdown-toggle"
142       data-toggle="dropdown"
143       href="#"
144       id="global-navigation-more"
145     >
146       more
147        
148       <span
149         className="icon-dropdown"
150       />
151     </a>
152     <ul
153       className="dropdown-menu"
154     >
155       <li>
156         <Link
157           onlyActiveOnIndex={false}
158           style={Object {}}
159           to="/extension/foo"
160         >
161           Foo
162         </Link>
163       </li>
164     </ul>
165   </li>
166 </ul>
167 `;