]> source.dussan.org Git - sonarqube.git/blob
03e59180ae2ce425ffbd773301273c7eece4f5fc
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <HotspotSnippetContainerRenderer
5   branchLike={
6     {
7       "analysisDate": "2018-01-01",
8       "excludedFromPurge": true,
9       "isMain": false,
10       "name": "branch-6.7",
11     }
12   }
13   component={
14     {
15       "breadcrumbs": [],
16       "key": "my-project",
17       "name": "MyProject",
18       "qualifier": "TRK",
19       "qualityGate": {
20         "isDefault": true,
21         "key": "30",
22         "name": "Sonar way",
23       },
24       "qualityProfiles": [
25         {
26           "deleted": false,
27           "key": "my-qp",
28           "language": "ts",
29           "name": "Sonar way",
30         },
31       ],
32       "tags": [],
33     }
34   }
35   highlightedSymbols={[]}
36   hotspot={
37     {
38       "assignee": "assignee",
39       "assigneeUser": {
40         "active": true,
41         "local": true,
42         "login": "assignee",
43         "name": "John Doe",
44       },
45       "author": "author",
46       "authorUser": {
47         "active": true,
48         "local": true,
49         "login": "author",
50         "name": "John Doe",
51       },
52       "canChangeStatus": true,
53       "changelog": [],
54       "comment": [],
55       "component": {
56         "key": "hotspot-component",
57         "longName": "Hotspot component long name",
58         "name": "Hotspot Component",
59         "path": "path/to/component",
60         "qualifier": "FIL",
61       },
62       "creationDate": "2013-05-13T17:55:41+0200",
63       "flows": [
64         {
65           "locations": [
66             {
67               "component": "main.js",
68               "textRange": {
69                 "endLine": 2,
70                 "endOffset": 2,
71                 "startLine": 1,
72                 "startOffset": 1,
73               },
74             },
75           ],
76         },
77       ],
78       "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
79       "line": 142,
80       "message": "'3' is a magic number.",
81       "project": {
82         "key": "hotspot-component",
83         "longName": "Hotspot component long name",
84         "name": "Hotspot Component",
85         "path": "path/to/component",
86         "qualifier": "TRK",
87       },
88       "resolution": "FIXED",
89       "rule": {
90         "key": "squid:S2077",
91         "name": "That rule",
92         "securityCategory": "sql-injection",
93         "vulnerabilityProbability": "HIGH",
94       },
95       "status": "REVIEWED",
96       "textRange": {
97         "endLine": 142,
98         "endOffset": 83,
99         "startLine": 142,
100         "startOffset": 26,
101       },
102       "updateDate": "2013-05-13T17:55:42+0200",
103       "users": [
104         {
105           "active": true,
106           "local": true,
107           "login": "assignee",
108           "name": "John Doe",
109         },
110         {
111           "active": true,
112           "local": true,
113           "login": "author",
114           "name": "John Doe",
115         },
116       ],
117     }
118   }
119   loading={true}
120   locations={
121     {
122       "142": [
123         {
124           "from": 26,
125           "line": 142,
126           "to": 83,
127         },
128       ],
129     }
130   }
131   onCommentButtonClick={[MockFunction]}
132   onExpandBlock={[Function]}
133   onLocationSelect={[MockFunction]}
134   onSymbolClick={[Function]}
135   secondaryLocations={
136     [
137       {
138         "component": "main.js",
139         "index": 0,
140         "text": undefined,
141         "textRange": {
142           "endLine": 2,
143           "endOffset": 2,
144           "startLine": 1,
145           "startOffset": 1,
146         },
147       },
148     ]
149   }
150   sourceLines={[]}
151   sourceViewerFile={
152     {
153       "key": "hotspot-component",
154       "measures": {
155         "lines": undefined,
156       },
157       "path": "path/to/component",
158       "project": "hotspot-component",
159       "projectName": "Hotspot Component",
160       "q": "FIL",
161       "uuid": "",
162     }
163   }
164 />
165 `;