]> source.dussan.org Git - sonarqube.git/blob
5df9d7b064a562c626cf137c3218033d2dfc08fb
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: branch with number of days 1`] = `
4 <tr
5   className=""
6 >
7   <td
8     className="nowrap"
9   >
10     <BranchLikeIcon
11       branchLike={
12         {
13           "analysisDate": "2018-01-01",
14           "excludedFromPurge": true,
15           "isMain": false,
16           "name": "branch-6.7",
17           "newCodePeriod": {
18             "type": "NUMBER_OF_DAYS",
19             "value": "21",
20           },
21         }
22       }
23       className="little-spacer-right"
24     />
25     branch-6.7
26   </td>
27   <td
28     className="huge-spacer-right nowrap"
29   >
30     <Tooltip>
31       <span>
32         baseline.number_days: 21
33       </span>
34     </Tooltip>
35   </td>
36   <td
37     className="text-right"
38   >
39     <ActionsDropdown>
40       <ActionsDropdownItem
41         onClick={[Function]}
42       >
43         edit
44       </ActionsDropdownItem>
45       <ActionsDropdownItem
46         onClick={[Function]}
47       >
48         reset_to_default
49       </ActionsDropdownItem>
50     </ActionsDropdown>
51   </td>
52 </tr>
53 `;
54
55 exports[`should render correctly: branch with previous version 1`] = `
56 <tr
57   className=""
58 >
59   <td
60     className="nowrap"
61   >
62     <BranchLikeIcon
63       branchLike={
64         {
65           "analysisDate": "2018-01-01",
66           "excludedFromPurge": true,
67           "isMain": false,
68           "name": "branch-6.7",
69           "newCodePeriod": {
70             "type": "PREVIOUS_VERSION",
71           },
72         }
73       }
74       className="little-spacer-right"
75     />
76     branch-6.7
77   </td>
78   <td
79     className="huge-spacer-right nowrap"
80   >
81     <Tooltip>
82       <span>
83         baseline.previous_version
84       </span>
85     </Tooltip>
86   </td>
87   <td
88     className="text-right"
89   >
90     <ActionsDropdown>
91       <ActionsDropdownItem
92         onClick={[Function]}
93       >
94         edit
95       </ActionsDropdownItem>
96       <ActionsDropdownItem
97         onClick={[Function]}
98       >
99         reset_to_default
100       </ActionsDropdownItem>
101     </ActionsDropdown>
102   </td>
103 </tr>
104 `;
105
106 exports[`should render correctly: branch with reference branch 1`] = `
107 <tr
108   className=""
109 >
110   <td
111     className="nowrap"
112   >
113     <BranchLikeIcon
114       branchLike={
115         {
116           "analysisDate": "2018-01-01",
117           "excludedFromPurge": true,
118           "isMain": false,
119           "name": "branch-6.7",
120           "newCodePeriod": {
121             "type": "REFERENCE_BRANCH",
122             "value": "master",
123           },
124         }
125       }
126       className="little-spacer-right"
127     />
128     branch-6.7
129   </td>
130   <td
131     className="huge-spacer-right nowrap"
132   >
133     <Tooltip>
134       <span>
135         baseline.reference_branch: master
136       </span>
137     </Tooltip>
138   </td>
139   <td
140     className="text-right"
141   >
142     <ActionsDropdown>
143       <ActionsDropdownItem
144         onClick={[Function]}
145       >
146         edit
147       </ActionsDropdownItem>
148       <ActionsDropdownItem
149         onClick={[Function]}
150       >
151         reset_to_default
152       </ActionsDropdownItem>
153     </ActionsDropdown>
154   </td>
155 </tr>
156 `;
157
158 exports[`should render correctly: branch with specific analysis 1`] = `
159 <tr
160   className=""
161 >
162   <td
163     className="nowrap"
164   >
165     <BranchLikeIcon
166       branchLike={
167         {
168           "analysisDate": "2018-01-01",
169           "excludedFromPurge": true,
170           "isMain": false,
171           "name": "branch-6.7",
172           "newCodePeriod": {
173             "effectiveValue": "2018-12-02T13:01:12",
174             "type": "SPECIFIC_ANALYSIS",
175             "value": "A85835",
176           },
177         }
178       }
179       className="little-spacer-right"
180     />
181     branch-6.7
182   </td>
183   <td
184     className="huge-spacer-right nowrap"
185   >
186     <Tooltip>
187       <span>
188         baseline.specific_analysis: 
189         <DateTimeFormatter
190           date="2018-12-02T13:01:12"
191         />
192       </span>
193     </Tooltip>
194   </td>
195   <td
196     className="text-right"
197   >
198     <ActionsDropdown>
199       <ActionsDropdownItem
200         onClick={[Function]}
201       >
202         edit
203       </ActionsDropdownItem>
204       <ActionsDropdownItem
205         onClick={[Function]}
206       >
207         reset_to_default
208       </ActionsDropdownItem>
209     </ActionsDropdown>
210   </td>
211 </tr>
212 `;
213
214 exports[`should render correctly: faulty branch 1`] = `
215 <tr
216   className="branch-setting-warning"
217 >
218   <td
219     className="nowrap"
220   >
221     <BranchLikeIcon
222       branchLike={
223         {
224           "analysisDate": "2018-01-01",
225           "excludedFromPurge": true,
226           "isMain": false,
227           "name": "branch-7.3",
228         }
229       }
230       className="little-spacer-right"
231     />
232     branch-7.3
233   </td>
234   <td
235     className="huge-spacer-right nowrap"
236   >
237     <Tooltip
238       overlay="baseline.reference_branch.invalid_branch_setting.branch-7.3"
239     >
240       <span>
241         <WarningIcon
242           className="little-spacer-right"
243         />
244         branch_list.default_setting
245       </span>
246     </Tooltip>
247   </td>
248   <td
249     className="text-right"
250   >
251     <ActionsDropdown>
252       <ActionsDropdownItem
253         onClick={[Function]}
254       >
255         edit
256       </ActionsDropdownItem>
257     </ActionsDropdown>
258   </td>
259 </tr>
260 `;
261
262 exports[`should render correctly: main branch with default 1`] = `
263 <tr
264   className=""
265 >
266   <td
267     className="nowrap"
268   >
269     <BranchLikeIcon
270       branchLike={
271         {
272           "analysisDate": "2018-01-01",
273           "excludedFromPurge": true,
274           "isMain": true,
275           "name": "master",
276         }
277       }
278       className="little-spacer-right"
279     />
280     master
281     <div
282       className="badge spacer-left"
283     >
284       branches.main_branch
285     </div>
286   </td>
287   <td
288     className="huge-spacer-right nowrap"
289   >
290     <Tooltip>
291       <span>
292         branch_list.default_setting
293       </span>
294     </Tooltip>
295   </td>
296   <td
297     className="text-right"
298   >
299     <ActionsDropdown>
300       <ActionsDropdownItem
301         onClick={[Function]}
302       >
303         edit
304       </ActionsDropdownItem>
305     </ActionsDropdown>
306   </td>
307 </tr>
308 `;