]> source.dussan.org Git - sonarqube.git/blob
6d59238df6d65f0bf8bc7764cda01acb655fa7f2
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="source-viewer-header-slim display-flex-row display-flex-space-between"
6 >
7   <div
8     className="display-flex-center flex-1"
9   >
10     <div
11       className="spacer-right"
12     >
13       <a
14         className="link-with-icon"
15         href="/dashboard?id=my-project"
16       >
17         <QualifierIcon
18           qualifier="TRK"
19         />
20          
21         <span>
22           MyProject
23         </span>
24       </a>
25     </div>
26     <div
27       className="spacer-right"
28     >
29       <QualifierIcon
30         qualifier="FIL"
31       />
32        
33       <span>
34         foo/
35       </span>
36       <span
37         className="component-name-file"
38       >
39         bar.ts
40       </span>
41     </div>
42     <div
43       className="spacer-right"
44     >
45       <ClipboardIconButton
46         className="button-link link-no-underline"
47         copyValue="foo/bar.ts"
48       />
49     </div>
50   </div>
51   <div
52     className="flex-0 big-spacer-left"
53   >
54     <Link
55       onlyActiveOnIndex={false}
56       style={Object {}}
57       to={
58         Object {
59           "pathname": "/project/issues",
60           "query": Object {
61             "fileUuids": "foo-bar",
62             "id": "my-project",
63             "resolved": "false",
64           },
65         }
66       }
67     >
68       source_viewer.view_all_issues
69     </Link>
70   </div>
71   <DeferredSpinner
72     className="little-spacer-right"
73   >
74     <div
75       className="flex-0 big-spacer-left"
76     >
77       <ButtonIcon
78         className="js-actions"
79         onClick={[MockFunction]}
80       >
81         <ExpandSnippetIcon />
82       </ButtonIcon>
83     </div>
84   </DeferredSpinner>
85 </div>
86 `;
87
88 exports[`should render correctly for subproject 1`] = `
89 <div
90   className="source-viewer-header-slim display-flex-row display-flex-space-between"
91 >
92   <div
93     className="display-flex-center flex-1"
94   >
95     <div
96       className="spacer-right"
97     >
98       <a
99         className="link-with-icon"
100         href="/dashboard?id=my-project"
101       >
102         <QualifierIcon
103           qualifier="TRK"
104         />
105          
106         <span>
107           MyProject
108         </span>
109       </a>
110     </div>
111     <QualifierIcon
112       qualifier="BRC"
113     />
114      
115     <span
116       className="spacer-right"
117     >
118       Foo
119     </span>
120     <div
121       className="spacer-right"
122     >
123       <QualifierIcon
124         qualifier="FIL"
125       />
126        
127       <span>
128         foo/
129       </span>
130       <span
131         className="component-name-file"
132       >
133         bar.ts
134       </span>
135     </div>
136     <div
137       className="spacer-right"
138     >
139       <ClipboardIconButton
140         className="button-link link-no-underline"
141         copyValue="foo/bar.ts"
142       />
143     </div>
144   </div>
145   <div
146     className="flex-0 big-spacer-left"
147   >
148     <Link
149       onlyActiveOnIndex={false}
150       style={Object {}}
151       to={
152         Object {
153           "pathname": "/project/issues",
154           "query": Object {
155             "fileUuids": "foo-bar",
156             "id": "my-project",
157             "resolved": "false",
158           },
159         }
160       }
161     >
162       source_viewer.view_all_issues
163     </Link>
164   </div>
165   <DeferredSpinner
166     className="little-spacer-right"
167   >
168     <div
169       className="flex-0 big-spacer-left"
170     >
171       <ButtonIcon
172         className="js-actions"
173         onClick={[MockFunction]}
174       >
175         <ExpandSnippetIcon />
176       </ButtonIcon>
177     </div>
178   </DeferredSpinner>
179 </div>
180 `;
181
182 exports[`should render correctly: no link to project 1`] = `
183 <div
184   className="source-viewer-header-slim display-flex-row display-flex-space-between"
185 >
186   <div
187     className="display-flex-center flex-1"
188   >
189     <div
190       className="spacer-right"
191     >
192       <QualifierIcon
193         qualifier="TRK"
194       />
195        
196       <span>
197         MyProject
198       </span>
199     </div>
200     <div
201       className="spacer-right"
202     >
203       <QualifierIcon
204         qualifier="FIL"
205       />
206        
207       <span>
208         foo/
209       </span>
210       <span
211         className="component-name-file"
212       >
213         bar.ts
214       </span>
215     </div>
216     <div
217       className="spacer-right"
218     >
219       <ClipboardIconButton
220         className="button-link link-no-underline"
221         copyValue="foo/bar.ts"
222       />
223     </div>
224   </div>
225   <div
226     className="flex-0 big-spacer-left"
227   >
228     <Link
229       onlyActiveOnIndex={false}
230       style={Object {}}
231       to={
232         Object {
233           "pathname": "/project/issues",
234           "query": Object {
235             "fileUuids": "foo-bar",
236             "id": "my-project",
237             "resolved": "false",
238           },
239         }
240       }
241     >
242       source_viewer.view_all_issues
243     </Link>
244   </div>
245   <DeferredSpinner
246     className="little-spacer-right"
247   >
248     <div
249       className="flex-0 big-spacer-left"
250     >
251       <ButtonIcon
252         className="js-actions"
253         onClick={[MockFunction]}
254       >
255         <ExpandSnippetIcon />
256       </ButtonIcon>
257     </div>
258   </DeferredSpinner>
259 </div>
260 `;
261
262 exports[`should render correctly: no project name 1`] = `
263 <div
264   className="source-viewer-header-slim display-flex-row display-flex-space-between"
265 >
266   <div
267     className="display-flex-center flex-1"
268   >
269     <div
270       className="spacer-right"
271     >
272       <QualifierIcon
273         qualifier="FIL"
274       />
275        
276       <span>
277         foo/
278       </span>
279       <span
280         className="component-name-file"
281       >
282         bar.ts
283       </span>
284     </div>
285     <div
286       className="spacer-right"
287     >
288       <ClipboardIconButton
289         className="button-link link-no-underline"
290         copyValue="foo/bar.ts"
291       />
292     </div>
293   </div>
294   <div
295     className="flex-0 big-spacer-left"
296   >
297     <Link
298       onlyActiveOnIndex={false}
299       style={Object {}}
300       to={
301         Object {
302           "pathname": "/project/issues",
303           "query": Object {
304             "fileUuids": "foo-bar",
305             "id": "my-project",
306             "resolved": "false",
307           },
308         }
309       }
310     >
311       source_viewer.view_all_issues
312     </Link>
313   </div>
314   <DeferredSpinner
315     className="little-spacer-right"
316   >
317     <div
318       className="flex-0 big-spacer-left"
319     >
320       <ButtonIcon
321         className="js-actions"
322         onClick={[MockFunction]}
323       >
324         <ExpandSnippetIcon />
325       </ButtonIcon>
326     </div>
327   </DeferredSpinner>
328 </div>
329 `;