]> source.dussan.org Git - sonarqube.git/blob
4ec06a7a8c0777a6ac2272fdb794e0816213bd99
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should handle the descending sort direction 1`] = `
4 <div>
5   <label>
6     projects.sort_by
7     :
8   </label>
9   <Select
10     className="little-spacer-left input-medium"
11     clearable={false}
12     onChange={[Function]}
13     optionComponent={[Function]}
14     options={
15       Array [
16         Object {
17           "class": undefined,
18           "label": "projects.sorting.name",
19           "value": "name",
20         },
21         Object {
22           "class": undefined,
23           "label": "projects.sorting.analysis_date",
24           "value": "analysis_date",
25         },
26         Object {
27           "class": undefined,
28           "label": "projects.sorting.reliability",
29           "value": "reliability",
30         },
31         Object {
32           "class": undefined,
33           "label": "projects.sorting.security",
34           "value": "security",
35         },
36         Object {
37           "class": undefined,
38           "label": "projects.sorting.maintainability",
39           "value": "maintainability",
40         },
41         Object {
42           "class": undefined,
43           "label": "projects.sorting.coverage",
44           "value": "coverage",
45         },
46         Object {
47           "class": undefined,
48           "label": "projects.sorting.duplications",
49           "value": "duplications",
50         },
51         Object {
52           "class": undefined,
53           "label": "projects.sorting.size",
54           "value": "size",
55         },
56       ]
57     }
58     searchable={false}
59     value="vulnerability"
60   />
61   <Tooltip
62     overlay="projects.sort_descending"
63   >
64     <ButtonIcon
65       className="js-projects-sorting-invert spacer-left"
66       color="#999"
67       onClick={[Function]}
68     >
69       <SortDescIcon
70         className=""
71       />
72     </ButtonIcon>
73   </Tooltip>
74 </div>
75 `;
76
77 exports[`should render correctly for leak view 1`] = `
78 <div>
79   <label>
80     projects.sort_by
81     :
82   </label>
83   <Select
84     className="little-spacer-left input-medium"
85     clearable={false}
86     onChange={[Function]}
87     optionComponent={[Function]}
88     options={
89       Array [
90         Object {
91           "class": undefined,
92           "label": "projects.sorting.analysis_date",
93           "value": "analysis_date",
94         },
95         Object {
96           "class": undefined,
97           "label": "projects.sorting.name",
98           "value": "name",
99         },
100         Object {
101           "class": "projects-leak-sorting-option",
102           "label": "projects.sorting.new_reliability",
103           "value": "new_reliability",
104         },
105         Object {
106           "class": "projects-leak-sorting-option",
107           "label": "projects.sorting.new_security",
108           "value": "new_security",
109         },
110         Object {
111           "class": "projects-leak-sorting-option",
112           "label": "projects.sorting.new_maintainability",
113           "value": "new_maintainability",
114         },
115         Object {
116           "class": "projects-leak-sorting-option",
117           "label": "projects.sorting.new_coverage",
118           "value": "new_coverage",
119         },
120         Object {
121           "class": "projects-leak-sorting-option",
122           "label": "projects.sorting.new_duplications",
123           "value": "new_duplications",
124         },
125         Object {
126           "class": "projects-leak-sorting-option",
127           "label": "projects.sorting.new_lines",
128           "value": "new_lines",
129         },
130       ]
131     }
132     searchable={false}
133     value="new_coverage"
134   />
135   <Tooltip
136     overlay="projects.sort_ascending"
137   >
138     <ButtonIcon
139       className="js-projects-sorting-invert spacer-left"
140       color="#999"
141       onClick={[Function]}
142     >
143       <SortAscIcon
144         className=""
145       />
146     </ButtonIcon>
147   </Tooltip>
148 </div>
149 `;
150
151 exports[`should render correctly for overall view 1`] = `
152 <div>
153   <label>
154     projects.sort_by
155     :
156   </label>
157   <Select
158     className="little-spacer-left input-medium"
159     clearable={false}
160     onChange={[Function]}
161     optionComponent={[Function]}
162     options={
163       Array [
164         Object {
165           "class": undefined,
166           "label": "projects.sorting.name",
167           "value": "name",
168         },
169         Object {
170           "class": undefined,
171           "label": "projects.sorting.analysis_date",
172           "value": "analysis_date",
173         },
174         Object {
175           "class": undefined,
176           "label": "projects.sorting.reliability",
177           "value": "reliability",
178         },
179         Object {
180           "class": undefined,
181           "label": "projects.sorting.security",
182           "value": "security",
183         },
184         Object {
185           "class": undefined,
186           "label": "projects.sorting.maintainability",
187           "value": "maintainability",
188         },
189         Object {
190           "class": undefined,
191           "label": "projects.sorting.coverage",
192           "value": "coverage",
193         },
194         Object {
195           "class": undefined,
196           "label": "projects.sorting.duplications",
197           "value": "duplications",
198         },
199         Object {
200           "class": undefined,
201           "label": "projects.sorting.size",
202           "value": "size",
203         },
204       ]
205     }
206     searchable={false}
207     value="name"
208   />
209   <Tooltip
210     overlay="projects.sort_ascending"
211   >
212     <ButtonIcon
213       className="js-projects-sorting-invert spacer-left"
214       color="#999"
215       onClick={[Function]}
216     >
217       <SortAscIcon
218         className=""
219       />
220     </ButtonIcon>
221   </Tooltip>
222 </div>
223 `;