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 className="js-actions"
118 exports[`should render correctly for a unit test 1`] = `
120 className="source-viewer-header display-flex-center"
123 className="flex-1 little-spacer-top"
126 className="component-name"
129 className="component-name-parent"
132 className="link-no-underline"
133 href="/dashboard?id=my-project"
145 className="component-name-path"
155 className="component-name-file"
160 className="nudged-up spacer-left"
163 aria-label="component_viewer.copy_path_to_clipboard"
164 className="button-link link-no-underline"
165 copyValue="foo/bar.ts"
172 className="display-flex-center"
175 className="source-viewer-header-measure"
178 className="source-viewer-header-measure-label"
183 className="source-viewer-header-measure-value"
190 className="source-viewer-header-actions flex-0"
197 className="js-measures"
201 component_viewer.show_details
206 className="js-new-window"
207 rel="noopener noreferrer"
212 "search": "?id=my-project&selected=my-project%3Afoo%2Fbar.ts",
216 component_viewer.new_window
221 className="js-workspace"
225 component_viewer.open_in_workspace
230 className="js-raw-source"
231 href="/api/sources/raw?key=my-project%3Afoo%2Fbar.ts"
232 rel="noopener noreferrer"
235 component_viewer.show_raw_source
240 overlayPlacement="bottom-right"
243 className="js-actions"
251 exports[`should render correctly if issue details are passed 1`] = `
253 className="source-viewer-header display-flex-center"
256 className="flex-1 little-spacer-top"
259 className="component-name"
262 className="component-name-parent"
265 className="link-no-underline"
266 href="/dashboard?id=project"
278 className="component-name-path"
288 className="component-name-file"
293 className="nudged-up spacer-left"
296 aria-label="component_viewer.copy_path_to_clipboard"
297 className="button-link link-no-underline"
298 copyValue="foo/bar.ts"
305 className="display-flex-center"
308 className="source-viewer-header-measure"
311 className="source-viewer-header-measure-label"
316 className="source-viewer-header-measure-value"
322 className="source-viewer-header-measure"
325 className="source-viewer-header-measure-label"
330 className="source-viewer-header-measure-value"
336 className="source-viewer-header-measure"
339 className="source-viewer-header-measure-label"
344 className="source-viewer-header-measure-value"
350 className="source-viewer-header-measure-separator"
353 className="source-viewer-header-measure"
357 className="source-viewer-header-measure-label"
362 className="source-viewer-header-measure-value"
368 "pathname": "/project/issues",
369 "search": "?files=foo%2Fbar.ts&resolved=false&types=BUG&id=project",
378 className="source-viewer-header-measure"
382 className="source-viewer-header-measure-label"
384 issue.type.VULNERABILITY
387 className="source-viewer-header-measure-value"
393 "pathname": "/project/issues",
394 "search": "?files=foo%2Fbar.ts&resolved=false&types=VULNERABILITY&id=project",
403 className="source-viewer-header-measure"
407 className="source-viewer-header-measure-label"
409 issue.type.CODE_SMELL
412 className="source-viewer-header-measure-value"
418 "pathname": "/project/issues",
419 "search": "?files=foo%2Fbar.ts&resolved=false&types=CODE_SMELL&id=project",
428 className="source-viewer-header-measure"
429 key="SECURITY_HOTSPOT"
432 className="source-viewer-header-measure-label"
434 issue.type.SECURITY_HOTSPOT
437 className="source-viewer-header-measure-value"
443 "pathname": "/project/issues",
444 "search": "?files=foo%2Fbar.ts&resolved=false&types=SECURITY_HOTSPOT&id=project",
454 className="source-viewer-header-actions flex-0"
461 className="js-measures"
465 component_viewer.show_details
470 className="js-new-window"
471 rel="noopener noreferrer"
476 "search": "?id=project&selected=project%3Afoo%2Fbar.ts",
480 component_viewer.new_window
485 className="js-workspace"
489 component_viewer.open_in_workspace
494 className="js-raw-source"
495 href="/api/sources/raw?key=project%3Afoo%2Fbar.ts"
496 rel="noopener noreferrer"
499 component_viewer.show_raw_source
504 overlayPlacement="bottom-right"
507 className="js-actions"