]> source.dussan.org Git - sonarqube.git/blob
f24c9b4ed5aac8bb0abdd7a7771efed2cf0168f5
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <HotspotSnippetContainerRenderer
5   branchLike={
6     Object {
7       "analysisDate": "2018-01-01",
8       "excludedFromPurge": true,
9       "isMain": false,
10       "name": "branch-6.7",
11     }
12   }
13   highlightedSymbols={Array []}
14   hotspot={
15     Object {
16       "assignee": Object {
17         "active": true,
18         "local": true,
19         "login": "john.doe",
20         "name": "John Doe",
21       },
22       "author": Object {
23         "active": true,
24         "local": true,
25         "login": "john.doe",
26         "name": "John Doe",
27       },
28       "component": Object {
29         "breadcrumbs": Array [],
30         "key": "my-project",
31         "name": "MyProject",
32         "organization": "foo",
33         "qualifier": "FIL",
34         "qualityGate": Object {
35           "isDefault": true,
36           "key": "30",
37           "name": "Sonar way",
38         },
39         "qualityProfiles": Array [
40           Object {
41             "deleted": false,
42             "key": "my-qp",
43             "language": "ts",
44             "name": "Sonar way",
45           },
46         ],
47         "tags": Array [],
48       },
49       "creationDate": "2013-05-13T17:55:41+0200",
50       "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
51       "line": 142,
52       "message": "'3' is a magic number.",
53       "project": Object {
54         "breadcrumbs": Array [],
55         "key": "my-project",
56         "name": "MyProject",
57         "organization": "foo",
58         "qualifier": "TRK",
59         "qualityGate": Object {
60           "isDefault": true,
61           "key": "30",
62           "name": "Sonar way",
63         },
64         "qualityProfiles": Array [
65           Object {
66             "deleted": false,
67             "key": "my-qp",
68             "language": "ts",
69             "name": "Sonar way",
70           },
71         ],
72         "tags": Array [],
73       },
74       "resolution": "FIXED",
75       "rule": Object {
76         "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
77         "key": "squid:S2077",
78         "name": "That rule",
79         "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
80         "securityCategory": "sql-injection",
81         "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
82         "vulnerabilityProbability": "HIGH",
83       },
84       "status": "REVIEWED",
85       "textRange": Object {
86         "endLine": 142,
87         "endOffset": 83,
88         "startLine": 142,
89         "startOffset": 26,
90       },
91       "updateDate": "2013-05-13T17:55:42+0200",
92     }
93   }
94   loading={true}
95   locations={
96     Object {
97       "142": Array [
98         Object {
99           "from": 26,
100           "line": 142,
101           "to": 83,
102         },
103       ],
104     }
105   }
106   onExpandBlock={[Function]}
107   onLinePopupToggle={[Function]}
108   onSymbolClick={[Function]}
109   sourceLines={Array []}
110   sourceViewerFile={
111     Object {
112       "key": "my-project",
113       "measures": Object {
114         "lines": undefined,
115       },
116       "path": "",
117       "project": "my-project",
118       "projectName": "MyProject",
119       "q": "FIL",
120       "uuid": "",
121     }
122   }
123 />
124 `;