]> source.dussan.org Git - sonarqube.git/blob
c02c0831a7f8a751c65299d1642eb90dbedc0eee
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders 1`] = `
4 <header
5   className="navbar-context-header"
6 >
7   <OrganizationAvatar
8     organization={
9       Object {
10         "key": "foo",
11         "name": "Foo",
12         "projectVisibility": "public",
13       }
14     }
15   />
16   <span
17     className="spacer-left"
18   >
19     Foo
20   </span>
21 </header>
22 `;
23
24 exports[`renders dropdown 1`] = `
25 <Dropdown
26   className="display-inline-block"
27   overlay={
28     <ul
29       className="menu"
30     >
31       <OrganizationListItem
32         organization={
33           Object {
34             "actions": Object {
35               "admin": true,
36             },
37             "key": "org1",
38             "name": "org1",
39             "projectVisibility": "public",
40           }
41         }
42       />
43       <OrganizationListItem
44         organization={
45           Object {
46             "actions": Object {
47               "admin": false,
48             },
49             "key": "org2",
50             "name": "org2",
51             "projectVisibility": "public",
52           }
53         }
54       />
55     </ul>
56   }
57 >
58   <a
59     className="display-inline-flex-center spacer-left link-base-color link-no-underline"
60     href="#"
61   >
62     Foo
63     <DropdownIcon
64       className="little-spacer-left"
65     />
66   </a>
67 </Dropdown>
68 `;
69
70 exports[`renders with alm integration 1`] = `
71 <header
72   className="navbar-context-header"
73 >
74   <OrganizationAvatar
75     organization={
76       Object {
77         "alm": Object {
78           "key": "github",
79           "membersSync": false,
80           "url": "https://github.com/foo",
81         },
82         "key": "foo",
83         "name": "Foo",
84         "projectVisibility": "public",
85       }
86     }
87   />
88   <span
89     className="spacer-left"
90   >
91     Foo
92   </span>
93   <a
94     className="link-no-underline"
95     href="https://github.com/foo"
96     rel="noopener noreferrer"
97     target="_blank"
98   >
99     <img
100       alt="github"
101       className="text-text-top spacer-left"
102       height={16}
103       src="/images/sonarcloud/github.svg"
104       width={16}
105     />
106   </a>
107 </header>
108 `;