]> source.dussan.org Git - sonarqube.git/blob
422bc79790ff59a2734d93e0be68190c9f66ad92
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display facet item list 1`] = `
4 <FacetBox>
5   <FacetHeader
6     name="Reliability"
7     onClick={[Function]}
8     open={true}
9     values={0}
10   />
11   <FacetItemsList>
12     <FacetItem
13       active={false}
14       disabled={false}
15       halfWidth={false}
16       name={
17         <span
18           id="measure-overview-Reliability-name"
19         >
20           component_measures.domain_overview
21         </span>
22       }
23       onClick={[Function]}
24       stat={
25         <BubblesIcon
26           size={14}
27         />
28       }
29       value="Reliability"
30     />
31     <span
32       className="facet search-navigator-facet facet-category"
33     >
34       <span
35         className="facet-name"
36       >
37         component_measures.facet_category.new_code_category
38       </span>
39     </span>
40     <FacetItem
41       active={false}
42       disabled={false}
43       halfWidth={false}
44       name={
45         <span
46           className="big-spacer-left"
47           id="measure-new_bugs-name"
48         >
49           New Bugs
50         </span>
51       }
52       onClick={[Function]}
53       stat={
54         <FacetMeasureValue
55           measure={
56             Object {
57               "leak": "5",
58               "metric": Object {
59                 "domain": "Reliability",
60                 "key": "new_bugs",
61                 "name": "New Bugs",
62                 "type": "INT",
63               },
64               "periods": Array [
65                 Object {
66                   "index": 1,
67                   "value": "5",
68                 },
69               ],
70             }
71           }
72         />
73       }
74       value="new_bugs"
75     />
76     <span
77       className="facet search-navigator-facet facet-category"
78     >
79       <span
80         className="facet-name"
81       >
82         component_measures.facet_category.overall_category
83       </span>
84     </span>
85     <FacetItem
86       active={false}
87       disabled={false}
88       halfWidth={false}
89       name={
90         <span
91           className="big-spacer-left"
92           id="measure-bugs-name"
93         >
94           Bugs
95         </span>
96       }
97       onClick={[Function]}
98       stat={
99         <FacetMeasureValue
100           measure={
101             Object {
102               "leak": "5",
103               "metric": Object {
104                 "domain": "Reliability",
105                 "key": "bugs",
106                 "name": "Bugs",
107                 "type": "INT",
108               },
109               "periods": Array [
110                 Object {
111                   "index": 1,
112                   "value": "5",
113                 },
114               ],
115               "value": "5",
116             }
117           }
118         />
119       }
120       value="bugs"
121     />
122   </FacetItemsList>
123 </FacetBox>
124 `;
125
126 exports[`should display facet item list with bugs selected 1`] = `
127 <FacetBox>
128   <FacetHeader
129     name="Reliability"
130     onClick={[Function]}
131     open={true}
132     values={1}
133   />
134   <FacetItemsList>
135     <FacetItem
136       active={false}
137       disabled={false}
138       halfWidth={false}
139       name={
140         <span
141           id="measure-overview-Reliability-name"
142         >
143           component_measures.domain_overview
144         </span>
145       }
146       onClick={[Function]}
147       stat={
148         <BubblesIcon
149           size={14}
150         />
151       }
152       value="Reliability"
153     />
154     <span
155       className="facet search-navigator-facet facet-category"
156     >
157       <span
158         className="facet-name"
159       >
160         component_measures.facet_category.new_code_category
161       </span>
162     </span>
163     <FacetItem
164       active={false}
165       disabled={false}
166       halfWidth={false}
167       name={
168         <span
169           className="big-spacer-left"
170           id="measure-new_bugs-name"
171         >
172           New Bugs
173         </span>
174       }
175       onClick={[Function]}
176       stat={
177         <FacetMeasureValue
178           measure={
179             Object {
180               "leak": "5",
181               "metric": Object {
182                 "domain": "Reliability",
183                 "key": "new_bugs",
184                 "name": "New Bugs",
185                 "type": "INT",
186               },
187               "periods": Array [
188                 Object {
189                   "index": 1,
190                   "value": "5",
191                 },
192               ],
193             }
194           }
195         />
196       }
197       value="new_bugs"
198     />
199     <span
200       className="facet search-navigator-facet facet-category"
201     >
202       <span
203         className="facet-name"
204       >
205         component_measures.facet_category.overall_category
206       </span>
207     </span>
208     <FacetItem
209       active={true}
210       disabled={false}
211       halfWidth={false}
212       name={
213         <span
214           className="big-spacer-left"
215           id="measure-bugs-name"
216         >
217           Bugs
218         </span>
219       }
220       onClick={[Function]}
221       stat={
222         <FacetMeasureValue
223           measure={
224             Object {
225               "leak": "5",
226               "metric": Object {
227                 "domain": "Reliability",
228                 "key": "bugs",
229                 "name": "Bugs",
230                 "type": "INT",
231               },
232               "periods": Array [
233                 Object {
234                   "index": 1,
235                   "value": "5",
236                 },
237               ],
238               "value": "5",
239             }
240           }
241         />
242       }
243       value="bugs"
244     />
245   </FacetItemsList>
246 </FacetBox>
247 `;