]> source.dussan.org Git - sonarqube.git/blob
d80344beadd8935bcb2f4de1b77916b2ced2aec3
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders list 1`] = `
4 <div
5   className="dropdown-menu dropdown-menu-shadow"
6 >
7   <div
8     className="search-box menu-search"
9   >
10     <button
11       className="search-box-submit button-clean"
12     >
13       <i
14         className="icon-search-new"
15       />
16     </button>
17     <input
18       autoFocus={true}
19       className="search-box-input"
20       onChange={[Function]}
21       onKeyDown={[Function]}
22       placeholder="search_verb"
23       type="search"
24       value=""
25     />
26   </div>
27   <ul
28     className="menu"
29   >
30     <ComponentNavBranchesMenuItem
31       branch={
32         Object {
33           "isMain": true,
34           "name": "master",
35         }
36       }
37       component={
38         Object {
39           "key": "component",
40         }
41       }
42       onSelect={[Function]}
43       selected={true}
44     />
45     <li
46       className="divider"
47     />
48     <ComponentNavBranchesMenuItem
49       branch={
50         Object {
51           "isMain": false,
52           "isOrphan": true,
53           "mergeBranch": "master",
54           "name": "baz",
55           "status": Object {
56             "bugs": 0,
57             "codeSmells": 0,
58             "vulnerabilities": 0,
59           },
60           "type": "SHORT",
61         }
62       }
63       component={
64         Object {
65           "key": "component",
66         }
67       }
68       onSelect={[Function]}
69       selected={false}
70     />
71     <ComponentNavBranchesMenuItem
72       branch={
73         Object {
74           "isMain": false,
75           "isOrphan": undefined,
76           "mergeBranch": "master",
77           "name": "foo",
78           "status": Object {
79             "bugs": 0,
80             "codeSmells": 0,
81             "vulnerabilities": 0,
82           },
83           "type": "SHORT",
84         }
85       }
86       component={
87         Object {
88           "key": "component",
89         }
90       }
91       onSelect={[Function]}
92       selected={false}
93     />
94     <li
95       className="divider"
96     />
97     <ComponentNavBranchesMenuItem
98       branch={
99         Object {
100           "isMain": false,
101           "name": "bar",
102           "type": "LONG",
103         }
104       }
105       component={
106         Object {
107           "key": "component",
108         }
109       }
110       onSelect={[Function]}
111       selected={false}
112     />
113     <li
114       className="divider"
115     />
116     <ComponentNavBranchesMenuItem
117       branch={
118         Object {
119           "isMain": false,
120           "isOrphan": true,
121           "mergeBranch": "master",
122           "name": "baz",
123           "status": Object {
124             "bugs": 0,
125             "codeSmells": 0,
126             "vulnerabilities": 0,
127           },
128           "type": "SHORT",
129         }
130       }
131       component={
132         Object {
133           "key": "component",
134         }
135       }
136       onSelect={[Function]}
137       selected={false}
138     />
139   </ul>
140 </div>
141 `;
142
143 exports[`searches 1`] = `
144 <div
145   className="dropdown-menu dropdown-menu-shadow"
146 >
147   <div
148     className="search-box menu-search"
149   >
150     <button
151       className="search-box-submit button-clean"
152     >
153       <i
154         className="icon-search-new"
155       />
156     </button>
157     <input
158       autoFocus={true}
159       className="search-box-input"
160       onChange={[Function]}
161       onKeyDown={[Function]}
162       placeholder="search_verb"
163       type="search"
164       value="bar"
165     />
166   </div>
167   <ul
168     className="menu"
169   >
170     <ComponentNavBranchesMenuItem
171       branch={
172         Object {
173           "isMain": false,
174           "isOrphan": undefined,
175           "mergeBranch": "master",
176           "name": "foobar",
177           "status": Object {
178             "bugs": 0,
179             "codeSmells": 0,
180             "vulnerabilities": 0,
181           },
182           "type": "SHORT",
183         }
184       }
185       component={
186         Object {
187           "key": "component",
188         }
189       }
190       onSelect={[Function]}
191       selected={true}
192     />
193     <li
194       className="divider"
195     />
196     <ComponentNavBranchesMenuItem
197       branch={
198         Object {
199           "isMain": false,
200           "name": "bar",
201           "type": "LONG",
202         }
203       }
204       component={
205         Object {
206           "key": "component",
207         }
208       }
209       onSelect={[Function]}
210       selected={false}
211     />
212   </ul>
213 </div>
214 `;