]> source.dussan.org Git - sonarqube.git/blob
c6743186aa0b7ead8cd2ff7b0e35481e8c5a5e12
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly if there are new features 1`] = `
4 <NavBar
5   className="navbar-global"
6   height={48}
7   id="global-navigation"
8 >
9   <SonarCloudNavBranding />
10   <GlobalNavMenu
11     accessToken="token"
12     appState={
13       Object {
14         "canAdmin": false,
15         "globalPages": Array [],
16         "organizationsEnabled": false,
17         "qualifiers": Array [],
18       }
19     }
20     currentUser={
21       Object {
22         "isLoggedIn": true,
23       }
24     }
25     location={
26       Object {
27         "pathname": "",
28       }
29     }
30     setCurrentUserSetting={[MockFunction]}
31   />
32   <ul
33     className="global-navbar-menu global-navbar-menu-right"
34   >
35     <NavLatestNotification
36       lastNews={
37         Object {
38           "features": Array [
39             Object {
40               "categories": Array [
41                 Object {
42                   "color": "#ff0000",
43                   "name": "Java",
44                 },
45               ],
46               "description": "10 new Java rules",
47             },
48           ],
49           "notification": "10 Java rules, Github checks, Security Hotspots, BitBucket branch decoration",
50           "publicationDate": "2018-04-06",
51         }
52       }
53       onClick={[Function]}
54       setCurrentUserSetting={[MockFunction]}
55     />
56     <GlobalNavExplore
57       location={
58         Object {
59           "pathname": "",
60         }
61       }
62     />
63     <EmbedDocsPopupHelper />
64     <withRouter(Search)
65       appState={
66         Object {
67           "canAdmin": false,
68           "globalPages": Array [],
69           "organizationsEnabled": false,
70           "qualifiers": Array [],
71         }
72       }
73       currentUser={
74         Object {
75           "isLoggedIn": true,
76         }
77       }
78     />
79     <ContextConsumer
80       data-test="global-nav-plus"
81     >
82       <Component />
83     </ContextConsumer>
84     <Connect(withRouter(GlobalNavUser))
85       appState={
86         Object {
87           "canAdmin": false,
88           "globalPages": Array [],
89           "organizationsEnabled": false,
90           "qualifiers": Array [],
91         }
92       }
93       currentUser={
94         Object {
95           "isLoggedIn": true,
96         }
97       }
98     />
99   </ul>
100 </NavBar>
101 `;
102
103 exports[`should render for SonarCloud 1`] = `
104 <NavBar
105   className="navbar-global"
106   height={48}
107   id="global-navigation"
108 >
109   <SonarCloudNavBranding />
110   <GlobalNavMenu
111     accessToken="token"
112     appState={
113       Object {
114         "canAdmin": false,
115         "globalPages": Array [],
116         "organizationsEnabled": false,
117         "qualifiers": Array [],
118       }
119     }
120     currentUser={
121       Object {
122         "isLoggedIn": true,
123       }
124     }
125     location={
126       Object {
127         "pathname": "",
128       }
129     }
130     setCurrentUserSetting={[MockFunction]}
131   />
132   <ul
133     className="global-navbar-menu global-navbar-menu-right"
134   >
135     <GlobalNavExplore
136       location={
137         Object {
138           "pathname": "",
139         }
140       }
141     />
142     <EmbedDocsPopupHelper />
143     <withRouter(Search)
144       appState={
145         Object {
146           "canAdmin": false,
147           "globalPages": Array [],
148           "organizationsEnabled": false,
149           "qualifiers": Array [],
150         }
151       }
152       currentUser={
153         Object {
154           "isLoggedIn": true,
155         }
156       }
157     />
158     <ContextConsumer
159       data-test="global-nav-plus"
160     >
161       <Component />
162     </ContextConsumer>
163     <Connect(withRouter(GlobalNavUser))
164       appState={
165         Object {
166           "canAdmin": false,
167           "globalPages": Array [],
168           "organizationsEnabled": false,
169           "qualifiers": Array [],
170         }
171       }
172       currentUser={
173         Object {
174           "isLoggedIn": true,
175         }
176       }
177     />
178   </ul>
179 </NavBar>
180 `;
181
182 exports[`should render for SonarQube 1`] = `
183 <NavBar
184   className="navbar-global"
185   height={48}
186   id="global-navigation"
187 >
188   <Connect(GlobalNavBranding) />
189   <GlobalNavMenu
190     accessToken="token"
191     appState={
192       Object {
193         "canAdmin": false,
194         "globalPages": Array [],
195         "organizationsEnabled": false,
196         "qualifiers": Array [],
197       }
198     }
199     currentUser={
200       Object {
201         "isLoggedIn": false,
202       }
203     }
204     location={
205       Object {
206         "pathname": "",
207       }
208     }
209     setCurrentUserSetting={[MockFunction]}
210   />
211   <ul
212     className="global-navbar-menu global-navbar-menu-right"
213   >
214     <EmbedDocsPopupHelper />
215     <withRouter(Search)
216       appState={
217         Object {
218           "canAdmin": false,
219           "globalPages": Array [],
220           "organizationsEnabled": false,
221           "qualifiers": Array [],
222         }
223       }
224       currentUser={
225         Object {
226           "isLoggedIn": false,
227         }
228       }
229     />
230     <Connect(withRouter(GlobalNavUser))
231       appState={
232         Object {
233           "canAdmin": false,
234           "globalPages": Array [],
235           "organizationsEnabled": false,
236           "qualifiers": Array [],
237         }
238       }
239       currentUser={
240         Object {
241           "isLoggedIn": false,
242         }
243       }
244     />
245   </ul>
246 </NavBar>
247 `;