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 className="button-link link-no-underline"
49 copyValue="foo/bar.ts"
56 className="source-viewer-header-actions flex-0"
63 className="js-measures"
67 component_viewer.show_details
72 className="js-new-window"
73 onlyActiveOnIndex={false}
74 rel="noopener noreferrer"
88 component_viewer.new_window
93 className="js-workspace"
97 component_viewer.open_in_workspace
102 className="js-raw-source"
103 href="/api/sources/raw?key=foo"
104 rel="noopener noreferrer"
107 component_viewer.show_raw_source
112 overlayPlacement="bottom-right"
115 className="js-actions"
123 exports[`should render correctly for a unit test 1`] = `
125 className="source-viewer-header display-flex-center"
128 className="flex-1 little-spacer-top"
131 className="component-name"
134 className="component-name-parent"
137 className="link-with-icon"
138 href="/dashboard?id=my-project"
150 className="component-name-path"
160 className="component-name-file"
165 className="nudged-up spacer-left"
168 className="button-link link-no-underline"
169 copyValue="foo/bar.ts"
176 className="display-flex-center"
179 className="source-viewer-header-measure"
182 className="source-viewer-header-measure-label"
187 className="source-viewer-header-measure-value"
194 className="source-viewer-header-actions flex-0"
201 className="js-measures"
205 component_viewer.show_details
210 className="js-new-window"
211 onlyActiveOnIndex={false}
212 rel="noopener noreferrer"
226 component_viewer.new_window
231 className="js-workspace"
235 component_viewer.open_in_workspace
240 className="js-raw-source"
241 href="/api/sources/raw?key=foo"
242 rel="noopener noreferrer"
245 component_viewer.show_raw_source
250 overlayPlacement="bottom-right"
253 className="js-actions"
261 exports[`should render correctly if issue details are passed 1`] = `
263 className="source-viewer-header display-flex-center"
266 className="flex-1 little-spacer-top"
269 className="component-name"
272 className="component-name-parent"
275 className="link-with-icon"
276 href="/dashboard?id=my-project"
288 className="component-name-path"
298 className="component-name-file"
303 className="nudged-up spacer-left"
306 className="button-link link-no-underline"
307 copyValue="foo/bar.ts"
314 className="display-flex-center"
317 className="source-viewer-header-measure"
320 className="source-viewer-header-measure-label"
325 className="source-viewer-header-measure-value"
331 className="source-viewer-header-measure"
334 className="source-viewer-header-measure-label"
339 className="source-viewer-header-measure-value"
345 className="source-viewer-header-measure"
348 className="source-viewer-header-measure-label"
353 className="source-viewer-header-measure-value"
359 className="source-viewer-header-measure-separator"
362 className="source-viewer-header-measure"
366 className="source-viewer-header-measure-label"
371 className="source-viewer-header-measure-value"
374 onlyActiveOnIndex={false}
378 "pathname": "/project/issues",
380 "files": "foo/bar.ts",
393 className="source-viewer-header-measure"
397 className="source-viewer-header-measure-label"
399 issue.type.VULNERABILITY
402 className="source-viewer-header-measure-value"
405 onlyActiveOnIndex={false}
409 "pathname": "/project/issues",
411 "files": "foo/bar.ts",
414 "types": "VULNERABILITY",
424 className="source-viewer-header-measure"
428 className="source-viewer-header-measure-label"
430 issue.type.CODE_SMELL
433 className="source-viewer-header-measure-value"
436 onlyActiveOnIndex={false}
440 "pathname": "/project/issues",
442 "files": "foo/bar.ts",
445 "types": "CODE_SMELL",
455 className="source-viewer-header-measure"
456 key="SECURITY_HOTSPOT"
459 className="source-viewer-header-measure-label"
461 issue.type.SECURITY_HOTSPOT
464 className="source-viewer-header-measure-value"
467 onlyActiveOnIndex={false}
471 "pathname": "/project/issues",
473 "files": "foo/bar.ts",
476 "types": "SECURITY_HOTSPOT",
487 className="source-viewer-header-actions flex-0"
494 className="js-measures"
498 component_viewer.show_details
503 className="js-new-window"
504 onlyActiveOnIndex={false}
505 rel="noopener noreferrer"
519 component_viewer.new_window
524 className="js-workspace"
528 component_viewer.open_in_workspace
533 className="js-raw-source"
534 href="/api/sources/raw?key=foo"
535 rel="noopener noreferrer"
538 component_viewer.show_raw_source
543 overlayPlacement="bottom-right"
546 className="js-actions"