]> source.dussan.org Git - sonarqube.git/blob
19177eb6608961170d308caf7cfd06608b72003b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <Fragment>
5   <Memo(ProjectInformationRenderer)
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       metrics={
39         Object {
40           "coverage": Object {
41             "id": "coverage",
42             "key": "coverage",
43             "name": "Coverage",
44             "type": "PERCENT",
45           },
46         }
47       }
48       project="my-project"
49       qualifier="TRK"
50     />
51   </InfoDrawerPage>
52 </Fragment>
53 `;
54
55 exports[`should render correctly: logged in user 1`] = `
56 <Fragment>
57   <Memo(ProjectInformationRenderer)
58     canConfigureNotifications={true}
59     canUseBadges={true}
60     component={
61       Object {
62         "breadcrumbs": Array [],
63         "key": "my-project",
64         "name": "MyProject",
65         "qualifier": "TRK",
66         "qualityGate": Object {
67           "isDefault": true,
68           "key": "30",
69           "name": "Sonar way",
70         },
71         "qualityProfiles": Array [
72           Object {
73             "deleted": false,
74             "key": "my-qp",
75             "language": "ts",
76             "name": "Sonar way",
77           },
78         ],
79         "tags": Array [],
80       }
81     }
82     onComponentChange={[MockFunction]}
83     onPageChange={[Function]}
84   />
85   <InfoDrawerPage
86     displayed={false}
87     onPageChange={[Function]}
88   >
89     <ProjectBadges
90       metrics={
91         Object {
92           "coverage": Object {
93             "id": "coverage",
94             "key": "coverage",
95             "name": "Coverage",
96             "type": "PERCENT",
97           },
98         }
99       }
100       project="my-project"
101       qualifier="TRK"
102     />
103   </InfoDrawerPage>
104   <InfoDrawerPage
105     displayed={false}
106     onPageChange={[Function]}
107   >
108     <withNotifications(ProjectNotifications)
109       component={
110         Object {
111           "breadcrumbs": Array [],
112           "key": "my-project",
113           "name": "MyProject",
114           "qualifier": "TRK",
115           "qualityGate": Object {
116             "isDefault": true,
117             "key": "30",
118             "name": "Sonar way",
119           },
120           "qualityProfiles": Array [
121             Object {
122               "deleted": false,
123               "key": "my-qp",
124               "language": "ts",
125               "name": "Sonar way",
126             },
127           ],
128           "tags": Array [],
129         }
130       }
131     />
132   </InfoDrawerPage>
133 </Fragment>
134 `;
135
136 exports[`should render correctly: measures loaded 1`] = `
137 <Fragment>
138   <Memo(ProjectInformationRenderer)
139     canConfigureNotifications={false}
140     canUseBadges={true}
141     component={
142       Object {
143         "breadcrumbs": Array [],
144         "key": "my-project",
145         "name": "MyProject",
146         "qualifier": "TRK",
147         "qualityGate": Object {
148           "isDefault": true,
149           "key": "30",
150           "name": "Sonar way",
151         },
152         "qualityProfiles": Array [
153           Object {
154             "deleted": false,
155             "key": "my-qp",
156             "language": "ts",
157             "name": "Sonar way",
158           },
159         ],
160         "tags": Array [],
161       }
162     }
163     measures={
164       Array [
165         Object {
166           "bestValue": true,
167           "metric": "bugs",
168           "period": Object {
169             "bestValue": true,
170             "index": 1,
171             "value": "1.0",
172           },
173           "value": "1.0",
174         },
175       ]
176     }
177     onComponentChange={[MockFunction]}
178     onPageChange={[Function]}
179   />
180   <InfoDrawerPage
181     displayed={false}
182     onPageChange={[Function]}
183   >
184     <ProjectBadges
185       metrics={
186         Object {
187           "coverage": Object {
188             "id": "coverage",
189             "key": "coverage",
190             "name": "Coverage",
191             "type": "PERCENT",
192           },
193         }
194       }
195       project="my-project"
196       qualifier="TRK"
197     />
198   </InfoDrawerPage>
199 </Fragment>
200 `;
201
202 exports[`should render correctly: private 1`] = `
203 <Fragment>
204   <Memo(ProjectInformationRenderer)
205     canConfigureNotifications={false}
206     canUseBadges={false}
207     component={
208       Object {
209         "breadcrumbs": Array [],
210         "key": "my-project",
211         "name": "MyProject",
212         "qualifier": "TRK",
213         "qualityGate": Object {
214           "isDefault": true,
215           "key": "30",
216           "name": "Sonar way",
217         },
218         "qualityProfiles": Array [
219           Object {
220             "deleted": false,
221             "key": "my-qp",
222             "language": "ts",
223             "name": "Sonar way",
224           },
225         ],
226         "tags": Array [],
227         "visibility": "private",
228       }
229     }
230     onComponentChange={[MockFunction]}
231     onPageChange={[Function]}
232   />
233 </Fragment>
234 `;