1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly 1`] = `
6 className="spacer-bottom"
8 hotspots.no_associated_lines
10 <withCurrentUserContext(HotspotSnippetHeader)
13 "analysisDate": "2018-01-01",
14 "excludedFromPurge": true,
21 "breadcrumbs": Array [],
25 "qualityGate": Object {
30 "qualityProfiles": Array [
43 "assignee": "assignee",
44 "assigneeUser": Object {
51 "authorUser": Object {
57 "canChangeStatus": true,
58 "changelog": Array [],
61 "key": "hotspot-component",
62 "longName": "Hotspot component long name",
63 "name": "Hotspot Component",
64 "path": "path/to/component",
67 "creationDate": "2013-05-13T17:55:41+0200",
72 "component": "main.js",
83 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
85 "message": "'3' is a magic number.",
87 "key": "hotspot-component",
88 "longName": "Hotspot component long name",
89 "name": "Hotspot Component",
90 "path": "path/to/component",
93 "resolution": "FIXED",
95 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
98 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
99 "securityCategory": "sql-injection",
100 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
101 "vulnerabilityProbability": "HIGH",
103 "status": "REVIEWED",
104 "textRange": Object {
110 "updateDate": "2013-05-13T17:55:42+0200",
129 className="hotspot-snippet-container bordered"
132 className="big-spacer"
139 exports[`should render correctly when secondary location is selected: with selected hotspot location 1`] = `
142 className="spacer-bottom"
144 hotspots.no_associated_lines
146 <withCurrentUserContext(HotspotSnippetHeader)
149 "analysisDate": "2018-01-01",
150 "excludedFromPurge": true,
157 "breadcrumbs": Array [],
161 "qualityGate": Object {
166 "qualityProfiles": Array [
179 "assignee": "assignee",
180 "assigneeUser": Object {
187 "authorUser": Object {
193 "canChangeStatus": true,
194 "changelog": Array [],
196 "component": Object {
197 "key": "hotspot-component",
198 "longName": "Hotspot component long name",
199 "name": "Hotspot Component",
200 "path": "path/to/component",
203 "creationDate": "2013-05-13T17:55:41+0200",
208 "component": "main.js",
209 "textRange": Object {
219 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
221 "message": "'3' is a magic number.",
223 "key": "hotspot-component",
224 "longName": "Hotspot component long name",
225 "name": "Hotspot Component",
226 "path": "path/to/component",
229 "resolution": "FIXED",
231 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
232 "key": "squid:S2077",
234 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
235 "securityCategory": "sql-injection",
236 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
237 "vulnerabilityProbability": "HIGH",
239 "status": "REVIEWED",
240 "textRange": Object {
246 "updateDate": "2013-05-13T17:55:42+0200",
265 className="hotspot-snippet-container bordered"
268 className="big-spacer"
275 exports[`should render correctly: with sourcelines 1`] = `
277 <withCurrentUserContext(HotspotSnippetHeader)
280 "analysisDate": "2018-01-01",
281 "excludedFromPurge": true,
288 "breadcrumbs": Array [],
292 "qualityGate": Object {
297 "qualityProfiles": Array [
310 "assignee": "assignee",
311 "assigneeUser": Object {
318 "authorUser": Object {
324 "canChangeStatus": true,
325 "changelog": Array [],
327 "component": Object {
328 "key": "hotspot-component",
329 "longName": "Hotspot component long name",
330 "name": "Hotspot Component",
331 "path": "path/to/component",
334 "creationDate": "2013-05-13T17:55:41+0200",
339 "component": "main.js",
340 "textRange": Object {
350 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
352 "message": "'3' is a magic number.",
354 "key": "hotspot-component",
355 "longName": "Hotspot component long name",
356 "name": "Hotspot Component",
357 "path": "path/to/component",
360 "resolution": "FIXED",
362 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
363 "key": "squid:S2077",
365 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
366 "securityCategory": "sql-injection",
367 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
368 "vulnerabilityProbability": "HIGH",
370 "status": "REVIEWED",
371 "textRange": Object {
377 "updateDate": "2013-05-13T17:55:42+0200",
396 className="hotspot-snippet-container bordered"
399 className="big-spacer"
408 "duplicationDensity": "1.0",
412 "path": "foo/bar.ts",
413 "project": "my-project",
414 "projectName": "MyProject",
419 displayLineNumberOptions={false}
421 expandBlock={[Function]}
422 handleCloseIssues={[Function]}
423 handleOpenIssues={[Function]}
424 handleSymbolClick={[MockFunction]}
425 highlightedSymbols={Array []}
429 "assignee": "assignee",
430 "assigneeUser": Object {
437 "authorUser": Object {
443 "canChangeStatus": true,
444 "changelog": Array [],
446 "component": Object {
447 "key": "hotspot-component",
448 "longName": "Hotspot component long name",
449 "name": "Hotspot Component",
450 "path": "path/to/component",
453 "creationDate": "2013-05-13T17:55:41+0200",
458 "component": "main.js",
459 "textRange": Object {
469 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
471 "message": "'3' is a magic number.",
473 "key": "hotspot-component",
474 "longName": "Hotspot component long name",
475 "name": "Hotspot Component",
476 "path": "path/to/component",
479 "resolution": "FIXED",
481 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
482 "key": "squid:S2077",
484 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
485 "securityCategory": "sql-injection",
486 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
487 "vulnerabilityProbability": "HIGH",
489 "status": "REVIEWED",
490 "textRange": Object {
496 "updateDate": "2013-05-13T17:55:42+0200",
513 issuesByLine={Object {}}
514 lastSnippetOfLastGroup={false}
516 locationsByLine={Object {}}
517 onLocationSelect={[MockFunction]}
518 openIssuesByLine={Object {}}
519 renderAdditionalChildInLine={[Function]}
520 renderDuplicationPopup={[Function]}
525 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
526 "coverageStatus": "covered",
527 "coveredConditions": 2,
531 "scmAuthor": "simon.brandhof@sonarsource.com",
532 "scmDate": "2018-12-11T10:48:39+0100",
533 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",