1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly for a regular file 1`] = `
5 className="source-viewer-header display-flex-center"
8 className="flex-1 little-spacer-top"
11 className="component-name"
14 className="component-name-parent"
17 className="link-no-underline"
18 href="/dashboard?id=project"
30 className="component-name-path"
40 className="component-name-file"
45 className="nudged-up spacer-left"
48 aria-label="component_viewer.copy_path_to_clipboard"
49 className="button-link link-no-underline"
50 copyValue="foo/bar.ts"
57 className="source-viewer-header-actions flex-0"
64 className="js-measures"
68 component_viewer.show_details
73 className="js-new-window"
74 rel="noopener noreferrer"
79 "search": "?id=project&selected=project%3Afoo%2Fbar.ts",
83 component_viewer.new_window
88 className="js-workspace"
92 component_viewer.open_in_workspace
97 className="js-raw-source"
98 href="/api/sources/raw?key=project%3Afoo%2Fbar.ts"
99 rel="noopener noreferrer"
102 component_viewer.show_raw_source
107 overlayPlacement="bottom-right"
110 aria-label="component_viewer.action_menu"
111 className="js-actions"
119 exports[`should render correctly for a unit test 1`] = `
121 className="source-viewer-header display-flex-center"
124 className="flex-1 little-spacer-top"
127 className="component-name"
130 className="component-name-parent"
133 className="link-no-underline"
134 href="/dashboard?id=my-project"
146 className="component-name-path"
156 className="component-name-file"
161 className="nudged-up spacer-left"
164 aria-label="component_viewer.copy_path_to_clipboard"
165 className="button-link link-no-underline"
166 copyValue="foo/bar.ts"
173 className="display-flex-center"
176 className="source-viewer-header-measure"
179 className="source-viewer-header-measure-label"
184 className="source-viewer-header-measure-value"
191 className="source-viewer-header-actions flex-0"
198 className="js-measures"
202 component_viewer.show_details
207 className="js-new-window"
208 rel="noopener noreferrer"
213 "search": "?id=my-project&selected=my-project%3Afoo%2Fbar.ts",
217 component_viewer.new_window
222 className="js-workspace"
226 component_viewer.open_in_workspace
231 className="js-raw-source"
232 href="/api/sources/raw?key=my-project%3Afoo%2Fbar.ts"
233 rel="noopener noreferrer"
236 component_viewer.show_raw_source
241 overlayPlacement="bottom-right"
244 aria-label="component_viewer.action_menu"
245 className="js-actions"
253 exports[`should render correctly if issue details are passed 1`] = `
255 className="source-viewer-header display-flex-center"
258 className="flex-1 little-spacer-top"
261 className="component-name"
264 className="component-name-parent"
267 className="link-no-underline"
268 href="/dashboard?id=project"
280 className="component-name-path"
290 className="component-name-file"
295 className="nudged-up spacer-left"
298 aria-label="component_viewer.copy_path_to_clipboard"
299 className="button-link link-no-underline"
300 copyValue="foo/bar.ts"
307 className="display-flex-center"
310 className="source-viewer-header-measure"
313 className="source-viewer-header-measure-label"
318 className="source-viewer-header-measure-value"
324 className="source-viewer-header-measure"
327 className="source-viewer-header-measure-label"
332 className="source-viewer-header-measure-value"
338 className="source-viewer-header-measure"
341 className="source-viewer-header-measure-label"
346 className="source-viewer-header-measure-value"
352 className="source-viewer-header-measure-separator"
355 className="source-viewer-header-measure"
359 className="source-viewer-header-measure-label"
364 className="source-viewer-header-measure-value"
370 "pathname": "/project/issues",
371 "search": "?files=foo%2Fbar.ts&resolved=false&types=BUG&id=project",
380 className="source-viewer-header-measure"
384 className="source-viewer-header-measure-label"
386 issue.type.VULNERABILITY
389 className="source-viewer-header-measure-value"
395 "pathname": "/project/issues",
396 "search": "?files=foo%2Fbar.ts&resolved=false&types=VULNERABILITY&id=project",
405 className="source-viewer-header-measure"
409 className="source-viewer-header-measure-label"
411 issue.type.CODE_SMELL
414 className="source-viewer-header-measure-value"
420 "pathname": "/project/issues",
421 "search": "?files=foo%2Fbar.ts&resolved=false&types=CODE_SMELL&id=project",
430 className="source-viewer-header-measure"
431 key="SECURITY_HOTSPOT"
434 className="source-viewer-header-measure-label"
436 issue.type.SECURITY_HOTSPOT
439 className="source-viewer-header-measure-value"
445 "pathname": "/security_hotspots",
446 "search": "?id=project&files=foo%2Fbar.ts",
456 className="source-viewer-header-actions flex-0"
463 className="js-measures"
467 component_viewer.show_details
472 className="js-new-window"
473 rel="noopener noreferrer"
478 "search": "?id=project&selected=project%3Afoo%2Fbar.ts",
482 component_viewer.new_window
487 className="js-workspace"
491 component_viewer.open_in_workspace
496 className="js-raw-source"
497 href="/api/sources/raw?key=project%3Afoo%2Fbar.ts"
498 rel="noopener noreferrer"
501 component_viewer.show_raw_source
506 overlayPlacement="bottom-right"
509 aria-label="component_viewer.action_menu"
510 className="js-actions"