]> source.dussan.org Git - sonarqube.git/blob
96fcb66989ecbdabd4a1d78f546b67a8d3ce4066
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for a "APP" root component and a component with branch "develop" 1`] = `
4 <td
5   className="measure-details-component-cell"
6 >
7   <div
8     className="text-ellipsis"
9   >
10     <Link
11       className="link-no-underline"
12       id="component-measures-component-link-foo"
13       to={
14         Object {
15           "pathname": "/component_measures",
16           "search": "?id=foo&metric=bugs&branch=develop&view=list&selected=foo",
17         }
18       }
19     >
20       <span
21         title="foo"
22       >
23         <QualifierIcon
24           className="little-spacer-right"
25           qualifier="TRK"
26         />
27         <span>
28           Foo
29         </span>
30         <BranchIcon
31           className="spacer-left little-spacer-right"
32         />
33         <span
34           className="note"
35         >
36           develop
37         </span>
38       </span>
39     </Link>
40   </div>
41 </td>
42 `;
43
44 exports[`should render correctly for a "APP" root component and a component with branch "undefined" 1`] = `
45 <td
46   className="measure-details-component-cell"
47 >
48   <div
49     className="text-ellipsis"
50   >
51     <Link
52       className="link-no-underline"
53       id="component-measures-component-link-foo"
54       to={
55         Object {
56           "pathname": "/component_measures",
57           "search": "?id=foo&metric=bugs&view=list&selected=foo",
58         }
59       }
60     >
61       <span
62         title="foo"
63       >
64         <QualifierIcon
65           className="little-spacer-right"
66           qualifier="TRK"
67         />
68         <span>
69           Foo
70         </span>
71         <span
72           className="spacer-left badge"
73         >
74           branches.main_branch
75         </span>
76       </span>
77     </Link>
78   </div>
79 </td>
80 `;
81
82 exports[`should render correctly for a "TRK" root component and a component with branch "develop" 1`] = `
83 <td
84   className="measure-details-component-cell"
85 >
86   <div
87     className="text-ellipsis"
88   >
89     <Link
90       className="link-no-underline"
91       id="component-measures-component-link-foo"
92       to={
93         Object {
94           "pathname": "/component_measures",
95           "search": "?id=foo&metric=bugs&branch=develop&view=list&selected=foo",
96         }
97       }
98     >
99       <span
100         title="foo"
101       >
102         <QualifierIcon
103           className="little-spacer-right"
104           qualifier="TRK"
105         />
106         <span>
107           Foo
108         </span>
109       </span>
110     </Link>
111   </div>
112 </td>
113 `;
114
115 exports[`should render correctly for a "TRK" root component and a component with branch "undefined" 1`] = `
116 <td
117   className="measure-details-component-cell"
118 >
119   <div
120     className="text-ellipsis"
121   >
122     <Link
123       className="link-no-underline"
124       id="component-measures-component-link-foo"
125       to={
126         Object {
127           "pathname": "/component_measures",
128           "search": "?id=foo&metric=bugs&view=list&selected=foo",
129         }
130       }
131     >
132       <span
133         title="foo"
134       >
135         <QualifierIcon
136           className="little-spacer-right"
137           qualifier="TRK"
138         />
139         <span>
140           Foo
141         </span>
142       </span>
143     </Link>
144   </div>
145 </td>
146 `;
147
148 exports[`should render correctly for a "VW" root component and a component with branch "develop" 1`] = `
149 <td
150   className="measure-details-component-cell"
151 >
152   <div
153     className="text-ellipsis"
154   >
155     <Link
156       className="link-no-underline"
157       id="component-measures-component-link-foo"
158       to={
159         Object {
160           "pathname": "/component_measures",
161           "search": "?id=foo&metric=bugs&branch=develop&view=list&selected=foo",
162         }
163       }
164     >
165       <span
166         title="foo"
167       >
168         <QualifierIcon
169           className="little-spacer-right"
170           qualifier="TRK"
171         />
172         <span>
173           Foo
174         </span>
175         <BranchIcon
176           className="spacer-left little-spacer-right"
177         />
178         <span
179           className="note"
180         >
181           develop
182         </span>
183       </span>
184     </Link>
185   </div>
186 </td>
187 `;
188
189 exports[`should render correctly for a "VW" root component and a component with branch "undefined" 1`] = `
190 <td
191   className="measure-details-component-cell"
192 >
193   <div
194     className="text-ellipsis"
195   >
196     <Link
197       className="link-no-underline"
198       id="component-measures-component-link-foo"
199       to={
200         Object {
201           "pathname": "/component_measures",
202           "search": "?id=foo&metric=bugs&view=list&selected=foo",
203         }
204       }
205     >
206       <span
207         title="foo"
208       >
209         <QualifierIcon
210           className="little-spacer-right"
211           qualifier="TRK"
212         />
213         <span>
214           Foo
215         </span>
216         <span
217           className="spacer-left badge"
218         >
219           branches.main_branch
220         </span>
221       </span>
222     </Link>
223   </div>
224 </td>
225 `;
226
227 exports[`should render correctly: default 1`] = `
228 <td
229   className="measure-details-component-cell"
230 >
231   <div
232     className="text-ellipsis"
233   >
234     <Link
235       className="link-no-underline"
236       id="component-measures-component-link-foo:src/index.tsx"
237       to={
238         Object {
239           "pathname": "/component_measures",
240           "search": "?id=foo&metric=bugs&view=list&selected=foo%3Asrc%2Findex.tsx",
241         }
242       }
243     >
244       <span
245         title="foo:src/index.tsx"
246       >
247         <QualifierIcon
248           className="little-spacer-right"
249           qualifier="FIL"
250         />
251         <span
252           className="note"
253         >
254           src
255           /
256         </span>
257         <span>
258           index.tsx
259         </span>
260       </span>
261     </Link>
262   </div>
263 </td>
264 `;