]> source.dussan.org Git - sonarqube.git/blob
a010a9957f3e4418b9dd87e1dd91001c7bd3f062
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <Fragment>
5   <withAppStateContext(Component)
6     canConfigureNotifications={false}
7     canUseBadges={true}
8     component={
9       Object {
10         "breadcrumbs": Array [],
11         "key": "my-project",
12         "name": "MyProject",
13         "qualifier": "TRK",
14         "qualityGate": Object {
15           "isDefault": true,
16           "key": "30",
17           "name": "Sonar way",
18         },
19         "qualityProfiles": Array [
20           Object {
21             "deleted": false,
22             "key": "my-qp",
23             "language": "ts",
24             "name": "Sonar way",
25           },
26         ],
27         "tags": Array [],
28       }
29     }
30     onComponentChange={[MockFunction]}
31     onPageChange={[Function]}
32   />
33   <InfoDrawerPage
34     displayed={false}
35     onPageChange={[Function]}
36   >
37     <ProjectBadges
38       component={
39         Object {
40           "breadcrumbs": Array [],
41           "key": "my-project",
42           "name": "MyProject",
43           "qualifier": "TRK",
44           "qualityGate": Object {
45             "isDefault": true,
46             "key": "30",
47             "name": "Sonar way",
48           },
49           "qualityProfiles": Array [
50             Object {
51               "deleted": false,
52               "key": "my-qp",
53               "language": "ts",
54               "name": "Sonar way",
55             },
56           ],
57           "tags": Array [],
58         }
59       }
60     />
61   </InfoDrawerPage>
62 </Fragment>
63 `;
64
65 exports[`should render correctly: logged in user 1`] = `
66 <Fragment>
67   <withAppStateContext(Component)
68     canConfigureNotifications={true}
69     canUseBadges={true}
70     component={
71       Object {
72         "breadcrumbs": Array [],
73         "key": "my-project",
74         "name": "MyProject",
75         "qualifier": "TRK",
76         "qualityGate": Object {
77           "isDefault": true,
78           "key": "30",
79           "name": "Sonar way",
80         },
81         "qualityProfiles": Array [
82           Object {
83             "deleted": false,
84             "key": "my-qp",
85             "language": "ts",
86             "name": "Sonar way",
87           },
88         ],
89         "tags": Array [],
90       }
91     }
92     onComponentChange={[MockFunction]}
93     onPageChange={[Function]}
94   />
95   <InfoDrawerPage
96     displayed={false}
97     onPageChange={[Function]}
98   >
99     <ProjectBadges
100       component={
101         Object {
102           "breadcrumbs": Array [],
103           "key": "my-project",
104           "name": "MyProject",
105           "qualifier": "TRK",
106           "qualityGate": Object {
107             "isDefault": true,
108             "key": "30",
109             "name": "Sonar way",
110           },
111           "qualityProfiles": Array [
112             Object {
113               "deleted": false,
114               "key": "my-qp",
115               "language": "ts",
116               "name": "Sonar way",
117             },
118           ],
119           "tags": Array [],
120         }
121       }
122     />
123   </InfoDrawerPage>
124   <InfoDrawerPage
125     displayed={false}
126     onPageChange={[Function]}
127   >
128     <withNotifications(ProjectNotifications)
129       component={
130         Object {
131           "breadcrumbs": Array [],
132           "key": "my-project",
133           "name": "MyProject",
134           "qualifier": "TRK",
135           "qualityGate": Object {
136             "isDefault": true,
137             "key": "30",
138             "name": "Sonar way",
139           },
140           "qualityProfiles": Array [
141             Object {
142               "deleted": false,
143               "key": "my-qp",
144               "language": "ts",
145               "name": "Sonar way",
146             },
147           ],
148           "tags": Array [],
149         }
150       }
151     />
152   </InfoDrawerPage>
153 </Fragment>
154 `;
155
156 exports[`should render correctly: measures loaded 1`] = `
157 <Fragment>
158   <withAppStateContext(Component)
159     canConfigureNotifications={false}
160     canUseBadges={true}
161     component={
162       Object {
163         "breadcrumbs": Array [],
164         "key": "my-project",
165         "name": "MyProject",
166         "qualifier": "TRK",
167         "qualityGate": Object {
168           "isDefault": true,
169           "key": "30",
170           "name": "Sonar way",
171         },
172         "qualityProfiles": Array [
173           Object {
174             "deleted": false,
175             "key": "my-qp",
176             "language": "ts",
177             "name": "Sonar way",
178           },
179         ],
180         "tags": Array [],
181       }
182     }
183     measures={
184       Array [
185         Object {
186           "bestValue": true,
187           "metric": "bugs",
188           "period": Object {
189             "bestValue": true,
190             "index": 1,
191             "value": "1.0",
192           },
193           "value": "1.0",
194         },
195       ]
196     }
197     onComponentChange={[MockFunction]}
198     onPageChange={[Function]}
199   />
200   <InfoDrawerPage
201     displayed={false}
202     onPageChange={[Function]}
203   >
204     <ProjectBadges
205       component={
206         Object {
207           "breadcrumbs": Array [],
208           "key": "my-project",
209           "name": "MyProject",
210           "qualifier": "TRK",
211           "qualityGate": Object {
212             "isDefault": true,
213             "key": "30",
214             "name": "Sonar way",
215           },
216           "qualityProfiles": Array [
217             Object {
218               "deleted": false,
219               "key": "my-qp",
220               "language": "ts",
221               "name": "Sonar way",
222             },
223           ],
224           "tags": Array [],
225         }
226       }
227     />
228   </InfoDrawerPage>
229 </Fragment>
230 `;
231
232 exports[`should render correctly: private 1`] = `
233 <Fragment>
234   <withAppStateContext(Component)
235     canConfigureNotifications={false}
236     canUseBadges={true}
237     component={
238       Object {
239         "breadcrumbs": Array [],
240         "key": "my-project",
241         "name": "MyProject",
242         "qualifier": "TRK",
243         "qualityGate": Object {
244           "isDefault": true,
245           "key": "30",
246           "name": "Sonar way",
247         },
248         "qualityProfiles": Array [
249           Object {
250             "deleted": false,
251             "key": "my-qp",
252             "language": "ts",
253             "name": "Sonar way",
254           },
255         ],
256         "tags": Array [],
257         "visibility": "private",
258       }
259     }
260     onComponentChange={[MockFunction]}
261     onPageChange={[Function]}
262   />
263   <InfoDrawerPage
264     displayed={false}
265     onPageChange={[Function]}
266   >
267     <ProjectBadges
268       component={
269         Object {
270           "breadcrumbs": Array [],
271           "key": "my-project",
272           "name": "MyProject",
273           "qualifier": "TRK",
274           "qualityGate": Object {
275             "isDefault": true,
276             "key": "30",
277             "name": "Sonar way",
278           },
279           "qualityProfiles": Array [
280             Object {
281               "deleted": false,
282               "key": "my-qp",
283               "language": "ts",
284               "name": "Sonar way",
285             },
286           ],
287           "tags": Array [],
288           "visibility": "private",
289         }
290       }
291     />
292   </InfoDrawerPage>
293 </Fragment>
294 `;