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-with-icon"
18 href="/dashboard?id=my-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 onlyActiveOnIndex={false}
75 rel="noopener noreferrer"
89 component_viewer.new_window
94 className="js-workspace"
98 component_viewer.open_in_workspace
103 className="js-raw-source"
104 href="/api/sources/raw?key=foo"
105 rel="noopener noreferrer"
108 component_viewer.show_raw_source
113 overlayPlacement="bottom-right"
116 className="js-actions"
124 exports[`should render correctly for a unit test 1`] = `
126 className="source-viewer-header display-flex-center"
129 className="flex-1 little-spacer-top"
132 className="component-name"
135 className="component-name-parent"
138 className="link-with-icon"
139 href="/dashboard?id=my-project"
151 className="component-name-path"
161 className="component-name-file"
166 className="nudged-up spacer-left"
169 aria-label="component_viewer.copy_path_to_clipboard"
170 className="button-link link-no-underline"
171 copyValue="foo/bar.ts"
178 className="display-flex-center"
181 className="source-viewer-header-measure"
184 className="source-viewer-header-measure-label"
189 className="source-viewer-header-measure-value"
196 className="source-viewer-header-actions flex-0"
203 className="js-measures"
207 component_viewer.show_details
212 className="js-new-window"
213 onlyActiveOnIndex={false}
214 rel="noopener noreferrer"
228 component_viewer.new_window
233 className="js-workspace"
237 component_viewer.open_in_workspace
242 className="js-raw-source"
243 href="/api/sources/raw?key=foo"
244 rel="noopener noreferrer"
247 component_viewer.show_raw_source
252 overlayPlacement="bottom-right"
255 className="js-actions"
263 exports[`should render correctly if issue details are passed 1`] = `
265 className="source-viewer-header display-flex-center"
268 className="flex-1 little-spacer-top"
271 className="component-name"
274 className="component-name-parent"
277 className="link-with-icon"
278 href="/dashboard?id=my-project"
290 className="component-name-path"
300 className="component-name-file"
305 className="nudged-up spacer-left"
308 aria-label="component_viewer.copy_path_to_clipboard"
309 className="button-link link-no-underline"
310 copyValue="foo/bar.ts"
317 className="display-flex-center"
320 className="source-viewer-header-measure"
323 className="source-viewer-header-measure-label"
328 className="source-viewer-header-measure-value"
334 className="source-viewer-header-measure"
337 className="source-viewer-header-measure-label"
342 className="source-viewer-header-measure-value"
348 className="source-viewer-header-measure"
351 className="source-viewer-header-measure-label"
356 className="source-viewer-header-measure-value"
362 className="source-viewer-header-measure-separator"
365 className="source-viewer-header-measure"
369 className="source-viewer-header-measure-label"
374 className="source-viewer-header-measure-value"
377 onlyActiveOnIndex={false}
381 "pathname": "/project/issues",
383 "files": "foo/bar.ts",
396 className="source-viewer-header-measure"
400 className="source-viewer-header-measure-label"
402 issue.type.VULNERABILITY
405 className="source-viewer-header-measure-value"
408 onlyActiveOnIndex={false}
412 "pathname": "/project/issues",
414 "files": "foo/bar.ts",
417 "types": "VULNERABILITY",
427 className="source-viewer-header-measure"
431 className="source-viewer-header-measure-label"
433 issue.type.CODE_SMELL
436 className="source-viewer-header-measure-value"
439 onlyActiveOnIndex={false}
443 "pathname": "/project/issues",
445 "files": "foo/bar.ts",
448 "types": "CODE_SMELL",
458 className="source-viewer-header-measure"
459 key="SECURITY_HOTSPOT"
462 className="source-viewer-header-measure-label"
464 issue.type.SECURITY_HOTSPOT
467 className="source-viewer-header-measure-value"
470 onlyActiveOnIndex={false}
474 "pathname": "/project/issues",
476 "files": "foo/bar.ts",
479 "types": "SECURITY_HOTSPOT",
490 className="source-viewer-header-actions flex-0"
497 className="js-measures"
501 component_viewer.show_details
506 className="js-new-window"
507 onlyActiveOnIndex={false}
508 rel="noopener noreferrer"
522 component_viewer.new_window
527 className="js-workspace"
531 component_viewer.open_in_workspace
536 className="js-raw-source"
537 href="/api/sources/raw?key=foo"
538 rel="noopener noreferrer"
541 component_viewer.show_raw_source
546 overlayPlacement="bottom-right"
549 className="js-actions"