]> source.dussan.org Git - sonarqube.git/blob
f3800e5f3ece72b10e9e3dd61931c335bcc16c22
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should not render the users organizations when they are not activated 1`] = `
4 <li
5   className="dropdown js-user-authenticated open"
6 >
7   <a
8     className="dropdown-toggle navbar-avatar"
9     href="#"
10     onClick={[Function]}
11   >
12     <Connect(Avatar)
13       email="foo@bar.baz"
14       name="foo"
15       size={24}
16     />
17   </a>
18   <ul
19     className="dropdown-menu dropdown-menu-right"
20   >
21     <li
22       className="dropdown-item"
23     >
24       <div
25         className="text-ellipsis text-muted"
26         title="foo"
27       >
28         <strong>
29           foo
30         </strong>
31       </div>
32       <div
33         className="little-spacer-top text-ellipsis text-muted"
34         title="foo@bar.baz"
35       >
36         foo@bar.baz
37       </div>
38     </li>
39     <li
40       className="divider"
41     />
42     <li>
43       <Link
44         onClick={[Function]}
45         onlyActiveOnIndex={false}
46         style={Object {}}
47         to="/account"
48       >
49         my_account.page
50       </Link>
51     </li>
52     <li>
53       <a
54         href="#"
55         onClick={[Function]}
56       >
57         layout.logout
58       </a>
59     </li>
60   </ul>
61 </li>
62 `;
63
64 exports[`should render the right interface for anonymous user 1`] = `
65 <li>
66   <a
67     href="#"
68     onClick={[Function]}
69   >
70     layout.login
71   </a>
72 </li>
73 `;
74
75 exports[`should render the right interface for logged in user 1`] = `
76 <li
77   className="dropdown js-user-authenticated open"
78 >
79   <a
80     className="dropdown-toggle navbar-avatar"
81     href="#"
82     onClick={[Function]}
83   >
84     <Connect(Avatar)
85       email="foo@bar.baz"
86       name="foo"
87       size={24}
88     />
89   </a>
90   <ul
91     className="dropdown-menu dropdown-menu-right"
92   >
93     <li
94       className="dropdown-item"
95     >
96       <div
97         className="text-ellipsis text-muted"
98         title="foo"
99       >
100         <strong>
101           foo
102         </strong>
103       </div>
104       <div
105         className="little-spacer-top text-ellipsis text-muted"
106         title="foo@bar.baz"
107       >
108         foo@bar.baz
109       </div>
110     </li>
111     <li
112       className="divider"
113     />
114     <li>
115       <Link
116         onClick={[Function]}
117         onlyActiveOnIndex={false}
118         style={Object {}}
119         to="/account"
120       >
121         my_account.page
122       </Link>
123     </li>
124     <li>
125       <a
126         href="#"
127         onClick={[Function]}
128       >
129         layout.logout
130       </a>
131     </li>
132   </ul>
133 </li>
134 `;
135
136 exports[`should render the users organizations 1`] = `
137 <li
138   className="dropdown js-user-authenticated open"
139 >
140   <a
141     className="dropdown-toggle navbar-avatar"
142     href="#"
143     onClick={[Function]}
144   >
145     <Connect(Avatar)
146       email="foo@bar.baz"
147       name="foo"
148       size={24}
149     />
150   </a>
151   <ul
152     className="dropdown-menu dropdown-menu-right"
153   >
154     <li
155       className="dropdown-item"
156     >
157       <div
158         className="text-ellipsis text-muted"
159         title="foo"
160       >
161         <strong>
162           foo
163         </strong>
164       </div>
165       <div
166         className="little-spacer-top text-ellipsis text-muted"
167         title="foo@bar.baz"
168       >
169         foo@bar.baz
170       </div>
171     </li>
172     <li
173       className="divider"
174     />
175     <li>
176       <Link
177         onClick={[Function]}
178         onlyActiveOnIndex={false}
179         style={Object {}}
180         to="/account"
181       >
182         my_account.page
183       </Link>
184     </li>
185     <li
186       className="divider"
187       role="separator"
188     />
189     <li
190       className="dropdown-header spacer-left"
191     >
192       my_organizations
193     </li>
194     <li>
195       <OrganizationLink
196         onClick={[Function]}
197         organization={
198           Object {
199             "key": "bar",
200             "name": "bar",
201           }
202         }
203       >
204         <span
205           className="spacer-left"
206         >
207           bar
208         </span>
209       </OrganizationLink>
210     </li>
211     <li>
212       <OrganizationLink
213         onClick={[Function]}
214         organization={
215           Object {
216             "key": "foo",
217             "name": "Foo",
218           }
219         }
220       >
221         <span
222           className="spacer-left"
223         >
224           Foo
225         </span>
226       </OrganizationLink>
227     </li>
228     <li>
229       <OrganizationLink
230         onClick={[Function]}
231         organization={
232           Object {
233             "key": "myorg",
234             "name": "MyOrg",
235           }
236         }
237       >
238         <span
239           className="spacer-left"
240         >
241           MyOrg
242         </span>
243       </OrganizationLink>
244     </li>
245     <li
246       className="divider"
247       role="separator"
248     />
249     <li>
250       <a
251         href="#"
252         onClick={[Function]}
253       >
254         layout.logout
255       </a>
256     </li>
257   </ul>
258 </li>
259 `;
260
261 exports[`should update the component correctly when the user changes to anonymous 1`] = `
262 <li
263   className="dropdown js-user-authenticated open"
264 >
265   <a
266     className="dropdown-toggle navbar-avatar"
267     href="#"
268     onClick={[Function]}
269   >
270     <Connect(Avatar)
271       email="foo@bar.baz"
272       name="foo"
273       size={24}
274     />
275   </a>
276   <ul
277     className="dropdown-menu dropdown-menu-right"
278   >
279     <li
280       className="dropdown-item"
281     >
282       <div
283         className="text-ellipsis text-muted"
284         title="foo"
285       >
286         <strong>
287           foo
288         </strong>
289       </div>
290       <div
291         className="little-spacer-top text-ellipsis text-muted"
292         title="foo@bar.baz"
293       >
294         foo@bar.baz
295       </div>
296     </li>
297     <li
298       className="divider"
299     />
300     <li>
301       <Link
302         onClick={[Function]}
303         onlyActiveOnIndex={false}
304         style={Object {}}
305         to="/account"
306       >
307         my_account.page
308       </Link>
309     </li>
310     <li>
311       <a
312         href="#"
313         onClick={[Function]}
314       >
315         layout.logout
316       </a>
317     </li>
318   </ul>
319 </li>
320 `;
321
322 exports[`should update the component correctly when the user changes to anonymous 2`] = `
323 <li>
324   <a
325     href="#"
326     onClick={[Function]}
327   >
328     layout.login
329   </a>
330 </li>
331 `;