]> source.dussan.org Git - sonarqube.git/blob
d4ebab4d137ef9466f101af4c4c73a8e421143bc
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="page-header"
6 >
7   <div
8     className="display-flex-space-between spacer-top"
9   >
10     <SearchFilterContainer
11       onQueryChange={[MockFunction]}
12       query={
13         Object {
14           "search": "test",
15         }
16       }
17     />
18     <div
19       className="display-flex-center"
20     >
21       <withCurrentUserContext(ProjectCreationMenu)
22         className="little-spacer-right"
23       />
24       <withCurrentUserContext(withRouter(withAppStateContext(ApplicationCreation)))
25         className="little-spacer-right"
26       />
27       <withCurrentUserContext(HomePageSelect)
28         className="spacer-left little-spacer-right"
29         currentPage={
30           Object {
31             "type": "PROJECTS",
32           }
33         }
34       />
35     </div>
36   </div>
37   <div
38     className="big-spacer-top display-flex-space-between"
39   >
40     <div
41       className="display-flex-center"
42     >
43       <span
44         className="projects-total-label"
45       >
46         <strong
47           id="projects-total"
48         >
49           12
50         </strong>
51          
52         projects._projects
53       </span>
54     </div>
55     <div
56       className="display-flex-center"
57     >
58       <PerspectiveSelect
59         className="projects-topbar-item"
60         onChange={[MockFunction]}
61         view="overall"
62       />
63       <div
64         className="projects-topbar-item"
65       >
66         <ProjectsSortingSelect
67           defaultOption="analysis_date"
68           onChange={[MockFunction]}
69           selectedSort="size"
70           view="overall"
71         />
72       </div>
73     </div>
74   </div>
75 </div>
76 `;
77
78 exports[`should render correctly while loading 1`] = `
79 <div
80   className="page-header"
81 >
82   <div
83     className="display-flex-space-between spacer-top"
84   >
85     <SearchFilterContainer
86       onQueryChange={[MockFunction]}
87       query={
88         Object {
89           "search": "test",
90         }
91       }
92     />
93     <div
94       className="display-flex-center"
95     >
96       <withCurrentUserContext(ProjectCreationMenu)
97         className="little-spacer-right"
98       />
99       <withCurrentUserContext(withRouter(withAppStateContext(ApplicationCreation)))
100         className="little-spacer-right"
101       />
102       <withCurrentUserContext(HomePageSelect)
103         className="spacer-left little-spacer-right"
104         currentPage={
105           Object {
106             "type": "PROJECTS",
107           }
108         }
109       />
110     </div>
111   </div>
112   <div
113     className="big-spacer-top display-flex-space-between"
114   >
115     <div
116       className="display-flex-center is-loading"
117     >
118       <span
119         className="projects-total-label"
120       >
121         <strong
122           id="projects-total"
123         >
124           2
125         </strong>
126          
127         projects._projects
128       </span>
129     </div>
130     <div
131       className="display-flex-center"
132     >
133       <PerspectiveSelect
134         className="projects-topbar-item"
135         onChange={[MockFunction]}
136         view="overall"
137       />
138       <div
139         className="projects-topbar-item"
140       >
141         <ProjectsSortingSelect
142           defaultOption="analysis_date"
143           onChange={[MockFunction]}
144           selectedSort="size"
145           view="overall"
146         />
147       </div>
148     </div>
149   </div>
150 </div>
151 `;
152
153 exports[`should render switch the default sorting option for anonymous users 1`] = `
154 <ProjectsSortingSelect
155   defaultOption="name"
156   onChange={[MockFunction]}
157   selectedSort="size"
158   view="overall"
159 />
160 `;
161
162 exports[`should render switch the default sorting option for anonymous users 2`] = `
163 <ProjectsSortingSelect
164   defaultOption="analysis_date"
165   onChange={[MockFunction]}
166   selectedSort="size"
167   view="leak"
168 />
169 `;