]> source.dussan.org Git - sonarqube.git/blob
e5bddc372ab9db9f72900f51f21b3a30af199528
[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                   "dismissedNotices": Object {},
81                   "isLoggedIn": true,
82                 }
83               }
84               loading={false}
85               onPerspectiveChange={[Function]}
86               onQueryChange={[Function]}
87               onSortChange={[Function]}
88               query={
89                 Object {
90                   "coverage": undefined,
91                   "duplications": undefined,
92                   "gate": undefined,
93                   "languages": undefined,
94                   "maintainability": undefined,
95                   "new_coverage": undefined,
96                   "new_duplications": undefined,
97                   "new_lines": undefined,
98                   "new_maintainability": undefined,
99                   "new_reliability": undefined,
100                   "new_security": undefined,
101                   "new_security_review_rating": undefined,
102                   "qualifier": undefined,
103                   "reliability": undefined,
104                   "search": undefined,
105                   "security": undefined,
106                   "security_review_rating": undefined,
107                   "size": undefined,
108                   "sort": undefined,
109                   "tags": undefined,
110                   "view": undefined,
111                 }
112               }
113               selectedSort="name"
114               total={0}
115               view="overall"
116             />
117           </div>
118         </div>
119       </div>
120       <div
121         className="layout-page-main-inner"
122       >
123         <ProjectsList
124           cardType="overall"
125           currentUser={
126             Object {
127               "dismissedNotices": Object {},
128               "isLoggedIn": true,
129             }
130           }
131           handleFavorite={[Function]}
132           isFavorite={false}
133           isFiltered={false}
134           projects={
135             Array [
136               Object {
137                 "key": "foo",
138                 "measures": Object {},
139                 "name": "Foo",
140                 "qualifier": "TRK",
141                 "tags": Array [],
142                 "visibility": "public",
143               },
144             ]
145           }
146           query={
147             Object {
148               "coverage": undefined,
149               "duplications": undefined,
150               "gate": undefined,
151               "languages": undefined,
152               "maintainability": undefined,
153               "new_coverage": undefined,
154               "new_duplications": undefined,
155               "new_lines": undefined,
156               "new_maintainability": undefined,
157               "new_reliability": undefined,
158               "new_security": undefined,
159               "new_security_review_rating": undefined,
160               "qualifier": undefined,
161               "reliability": undefined,
162               "search": undefined,
163               "security": undefined,
164               "security_review_rating": undefined,
165               "size": undefined,
166               "sort": undefined,
167               "tags": undefined,
168               "view": undefined,
169             }
170           }
171         />
172         <ListFooter
173           count={1}
174           loadMore={[Function]}
175           loading={false}
176           ready={true}
177           total={0}
178         />
179       </div>
180     </div>
181   </div>
182 </div>
183 `;