]> source.dussan.org Git - sonarqube.git/blob
50f52bb687cb80eb92435a828ede9e0ab64592dd
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render the right interface for anonymous user 1`] = `
4 <li>
5   <a
6     href="#"
7     onClick={[Function]}
8   >
9     layout.login
10   </a>
11 </li>
12 `;
13
14 exports[`should render the right interface for logged in user 1`] = `
15 <li
16   className="dropdown js-user-authenticated open"
17 >
18   <a
19     className="dropdown-toggle navbar-avatar"
20     href="#"
21     onClick={[Function]}
22   >
23     <Connect(Avatar)
24       email="foo@bar.baz"
25       name="foo"
26       size={24}
27     />
28   </a>
29   <ul
30     className="dropdown-menu dropdown-menu-right"
31   >
32     <li
33       className="dropdown-item"
34     >
35       <div
36         className="text-ellipsis text-muted"
37         title="foo"
38       >
39         <strong>
40           foo
41         </strong>
42       </div>
43       <div
44         className="little-spacer-top text-ellipsis text-muted"
45         title="foo@bar.baz"
46       >
47         foo@bar.baz
48       </div>
49     </li>
50     <li
51       className="divider"
52     />
53     <li>
54       <Link
55         onClick={[Function]}
56         onlyActiveOnIndex={false}
57         style={Object {}}
58         to="/account"
59       >
60         my_account.page
61       </Link>
62     </li>
63     <li>
64       <a
65         href="#"
66         onClick={[Function]}
67       >
68         layout.logout
69       </a>
70     </li>
71   </ul>
72 </li>
73 `;
74
75 exports[`should render the users organizations 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       className="divider"
126       role="separator"
127     />
128     <li
129       className="dropdown-header spacer-left"
130     >
131       my_organizations
132     </li>
133     <li>
134       <OrganizationLink
135         onClick={[Function]}
136         organization={
137           Object {
138             "key": "bar",
139             "name": "bar",
140           }
141         }
142       >
143         <span
144           className="spacer-left"
145         >
146           bar
147         </span>
148       </OrganizationLink>
149     </li>
150     <li>
151       <OrganizationLink
152         onClick={[Function]}
153         organization={
154           Object {
155             "key": "foo",
156             "name": "Foo",
157           }
158         }
159       >
160         <span
161           className="spacer-left"
162         >
163           Foo
164         </span>
165       </OrganizationLink>
166     </li>
167     <li>
168       <OrganizationLink
169         onClick={[Function]}
170         organization={
171           Object {
172             "key": "myorg",
173             "name": "MyOrg",
174           }
175         }
176       >
177         <span
178           className="spacer-left"
179         >
180           MyOrg
181         </span>
182       </OrganizationLink>
183     </li>
184     <li
185       className="divider"
186       role="separator"
187     />
188     <li>
189       <a
190         href="#"
191         onClick={[Function]}
192       >
193         layout.logout
194       </a>
195     </li>
196   </ul>
197 </li>
198 `;
199
200 exports[`should update the component correctly when the user changes to anonymous 1`] = `
201 <li
202   className="dropdown js-user-authenticated open"
203 >
204   <a
205     className="dropdown-toggle navbar-avatar"
206     href="#"
207     onClick={[Function]}
208   >
209     <Connect(Avatar)
210       email="foo@bar.baz"
211       name="foo"
212       size={24}
213     />
214   </a>
215   <ul
216     className="dropdown-menu dropdown-menu-right"
217   >
218     <li
219       className="dropdown-item"
220     >
221       <div
222         className="text-ellipsis text-muted"
223         title="foo"
224       >
225         <strong>
226           foo
227         </strong>
228       </div>
229       <div
230         className="little-spacer-top text-ellipsis text-muted"
231         title="foo@bar.baz"
232       >
233         foo@bar.baz
234       </div>
235     </li>
236     <li
237       className="divider"
238     />
239     <li>
240       <Link
241         onClick={[Function]}
242         onlyActiveOnIndex={false}
243         style={Object {}}
244         to="/account"
245       >
246         my_account.page
247       </Link>
248     </li>
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 2`] = `
262 <li>
263   <a
264     href="#"
265     onClick={[Function]}
266   >
267     layout.login
268   </a>
269 </li>
270 `;