]> source.dussan.org Git - sonarqube.git/blob
a4497f47c20f05833a6dffa9492cadc353e399b3
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`handles favorite projects 1`] = `
4 Array [
5   Object {
6     "key": "foo",
7     "measures": Object {},
8     "name": "Foo",
9     "qualifier": "TRK",
10     "tags": Array [],
11     "visibility": "public",
12   },
13 ]
14 `;
15
16 exports[`handles favorite projects 2`] = `
17 Array [
18   Object {
19     "isFavorite": true,
20     "key": "foo",
21     "measures": Object {},
22     "name": "Foo",
23     "qualifier": "TRK",
24     "tags": Array [],
25     "visibility": "public",
26   },
27 ]
28 `;
29
30 exports[`renders 1`] = `
31 <div
32   className="layout-page projects-page"
33   id="projects-page"
34 >
35   <Suggestions
36     suggestions="projects"
37   />
38   <Helmet
39     defer={false}
40     encodeSpecialCharacters={true}
41     title="projects.page"
42   />
43   <ScreenPositionHelper
44     className="layout-page-side-outer"
45   >
46     <Component />
47   </ScreenPositionHelper>
48   <div
49     className="layout-page-main"
50   >
51     <A11ySkipTarget
52       anchor="projects_main"
53     />
54     <div
55       className="layout-page-header-panel layout-page-main-header"
56     >
57       <div
58         className="layout-page-header-panel-inner layout-page-main-header-inner"
59       >
60         <div
61           className="layout-page-main-inner"
62         >
63           <PageHeader
64             currentUser={
65               Object {
66                 "isLoggedIn": true,
67               }
68             }
69             loading={false}
70             onPerspectiveChange={[Function]}
71             onQueryChange={[Function]}
72             onSortChange={[Function]}
73             projects={
74               Array [
75                 Object {
76                   "key": "foo",
77                   "measures": Object {},
78                   "name": "Foo",
79                   "qualifier": "TRK",
80                   "tags": Array [],
81                   "visibility": "public",
82                 },
83               ]
84             }
85             query={
86               Object {
87                 "coverage": undefined,
88                 "duplications": undefined,
89                 "gate": undefined,
90                 "languages": undefined,
91                 "maintainability": undefined,
92                 "new_coverage": undefined,
93                 "new_duplications": undefined,
94                 "new_lines": undefined,
95                 "new_maintainability": undefined,
96                 "new_reliability": undefined,
97                 "new_security": undefined,
98                 "new_security_review_rating": undefined,
99                 "qualifier": undefined,
100                 "reliability": undefined,
101                 "search": undefined,
102                 "security": undefined,
103                 "security_review_rating": undefined,
104                 "size": undefined,
105                 "sort": undefined,
106                 "tags": undefined,
107                 "view": undefined,
108                 "visualization": undefined,
109               }
110             }
111             selectedSort="name"
112             total={0}
113             view="overall"
114             visualization="risk"
115           />
116         </div>
117       </div>
118     </div>
119     <div
120       className="layout-page-main-inner"
121     >
122       <ProjectsList
123         cardType="overall"
124         currentUser={
125           Object {
126             "isLoggedIn": true,
127           }
128         }
129         handleFavorite={[Function]}
130         isFavorite={false}
131         isFiltered={false}
132         projects={
133           Array [
134             Object {
135               "key": "foo",
136               "measures": Object {},
137               "name": "Foo",
138               "qualifier": "TRK",
139               "tags": Array [],
140               "visibility": "public",
141             },
142           ]
143         }
144         query={
145           Object {
146             "coverage": undefined,
147             "duplications": undefined,
148             "gate": undefined,
149             "languages": undefined,
150             "maintainability": undefined,
151             "new_coverage": undefined,
152             "new_duplications": undefined,
153             "new_lines": undefined,
154             "new_maintainability": undefined,
155             "new_reliability": undefined,
156             "new_security": undefined,
157             "new_security_review_rating": undefined,
158             "qualifier": undefined,
159             "reliability": undefined,
160             "search": undefined,
161             "security": undefined,
162             "security_review_rating": undefined,
163             "size": undefined,
164             "sort": undefined,
165             "tags": undefined,
166             "view": undefined,
167             "visualization": undefined,
168           }
169         }
170       />
171       <ListFooter
172         count={1}
173         loadMore={[Function]}
174         loading={false}
175         ready={true}
176         total={0}
177       />
178     </div>
179   </div>
180 </div>
181 `;
182
183 exports[`renders 2`] = `
184 <div
185   className="layout-page projects-page"
186   id="projects-page"
187 >
188   <Suggestions
189     suggestions="projects"
190   />
191   <Helmet
192     defer={false}
193     encodeSpecialCharacters={true}
194     title="projects.page"
195   />
196   <ScreenPositionHelper
197     className="layout-page-side-outer"
198   >
199     <Component />
200   </ScreenPositionHelper>
201   <div
202     className="layout-page-main"
203   >
204     <A11ySkipTarget
205       anchor="projects_main"
206     />
207     <div
208       className="layout-page-header-panel layout-page-main-header"
209     >
210       <div
211         className="layout-page-header-panel-inner layout-page-main-header-inner"
212       >
213         <div
214           className="layout-page-main-inner"
215         >
216           <PageHeader
217             currentUser={
218               Object {
219                 "isLoggedIn": true,
220               }
221             }
222             loading={false}
223             onPerspectiveChange={[Function]}
224             onQueryChange={[Function]}
225             onSortChange={[Function]}
226             projects={
227               Array [
228                 Object {
229                   "key": "foo",
230                   "measures": Object {},
231                   "name": "Foo",
232                   "qualifier": "TRK",
233                   "tags": Array [],
234                   "visibility": "public",
235                 },
236               ]
237             }
238             query={
239               Object {
240                 "view": "visualizations",
241               }
242             }
243             selectedSort="name"
244             total={0}
245             view="visualizations"
246             visualization="risk"
247           />
248         </div>
249       </div>
250     </div>
251     <div
252       className="layout-page-main-inner"
253     >
254       <Visualizations
255         projects={
256           Array [
257             Object {
258               "key": "foo",
259               "measures": Object {},
260               "name": "Foo",
261               "qualifier": "TRK",
262               "tags": Array [],
263               "visibility": "public",
264             },
265           ]
266         }
267         total={0}
268         visualization="risk"
269       />
270     </div>
271   </div>
272 </div>
273 `;