]> source.dussan.org Git - sonarqube.git/blob
229c1295c61330907ea5973e620439c3eea7f78b
[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     prioritizeSeoTags={false}
42     title="projects.page"
43   />
44   <h1
45     className="a11y-hidden"
46   >
47     projects.page
48   </h1>
49   <ScreenPositionHelper
50     className="layout-page-side-outer"
51   >
52     <Component />
53   </ScreenPositionHelper>
54   <div
55     className="layout-page-main"
56   >
57     <A11ySkipTarget
58       anchor="projects_main"
59     />
60     <div
61       role="main"
62     >
63       <h2
64         className="a11y-hidden"
65       >
66         list_of_projects
67       </h2>
68       <div
69         className="layout-page-header-panel layout-page-main-header"
70       >
71         <div
72           className="layout-page-header-panel-inner layout-page-main-header-inner"
73         >
74           <div
75             className="layout-page-main-inner"
76           >
77             <PageHeader
78               currentUser={
79                 Object {
80                   "isLoggedIn": true,
81                 }
82               }
83               loading={false}
84               onPerspectiveChange={[Function]}
85               onQueryChange={[Function]}
86               onSortChange={[Function]}
87               query={
88                 Object {
89                   "coverage": undefined,
90                   "duplications": undefined,
91                   "gate": undefined,
92                   "languages": undefined,
93                   "maintainability": undefined,
94                   "new_coverage": undefined,
95                   "new_duplications": undefined,
96                   "new_lines": undefined,
97                   "new_maintainability": undefined,
98                   "new_reliability": undefined,
99                   "new_security": undefined,
100                   "new_security_review_rating": undefined,
101                   "qualifier": undefined,
102                   "reliability": undefined,
103                   "search": undefined,
104                   "security": undefined,
105                   "security_review_rating": undefined,
106                   "size": undefined,
107                   "sort": undefined,
108                   "tags": undefined,
109                   "view": undefined,
110                 }
111               }
112               selectedSort="name"
113               total={0}
114               view="overall"
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             }
168           }
169         />
170         <ListFooter
171           count={1}
172           loadMore={[Function]}
173           loading={false}
174           ready={true}
175           total={0}
176         />
177       </div>
178     </div>
179   </div>
180 </div>
181 `;