]> source.dussan.org Git - sonarqube.git/blob
e261772684f3011f547ae30b39f30472c36b969e
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="huge-spacer-bottom"
6 >
7   <div
8     className="display-flex-column big-spacer-bottom"
9   >
10     <div
11       className="big text-bold"
12     >
13       '3' is a magic number.
14     </div>
15     <div
16       className="spacer-top"
17     >
18       <span
19         className="note padded-right"
20       >
21         That rule
22       </span>
23       <Link
24         className="small"
25         target="_blank"
26         to={
27           Object {
28             "pathname": "/coding_rules",
29             "search": "?open=squid%3AS2077&rule_key=squid%3AS2077",
30           }
31         }
32       >
33         squid:S2077
34       </Link>
35     </div>
36   </div>
37   <div
38     className="display-flex-space-between"
39   >
40     <withCurrentUserContext(Status)
41       hotspot={
42         Object {
43           "assignee": "assignee",
44           "assigneeUser": Object {
45             "active": true,
46             "local": true,
47             "login": "assignee",
48             "name": "John Doe",
49           },
50           "author": "author",
51           "authorUser": Object {
52             "active": true,
53             "local": true,
54             "login": "author",
55             "name": "John Doe",
56           },
57           "canChangeStatus": true,
58           "changelog": Array [],
59           "comment": Array [],
60           "component": Object {
61             "key": "hotspot-component",
62             "longName": "Hotspot component long name",
63             "name": "Hotspot Component",
64             "path": "path/to/component",
65             "qualifier": "FIL",
66           },
67           "creationDate": "2013-05-13T17:55:41+0200",
68           "flows": Array [
69             Object {
70               "locations": Array [
71                 Object {
72                   "component": "main.js",
73                   "textRange": Object {
74                     "endLine": 2,
75                     "endOffset": 2,
76                     "startLine": 1,
77                     "startOffset": 1,
78                   },
79                 },
80               ],
81             },
82           ],
83           "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
84           "line": 142,
85           "message": "'3' is a magic number.",
86           "project": Object {
87             "key": "hotspot-component",
88             "longName": "Hotspot component long name",
89             "name": "Hotspot Component",
90             "path": "path/to/component",
91             "qualifier": "TRK",
92           },
93           "resolution": "FIXED",
94           "rule": Object {
95             "key": "squid:S2077",
96             "name": "That rule",
97             "securityCategory": "sql-injection",
98             "vulnerabilityProbability": "HIGH",
99           },
100           "status": "REVIEWED",
101           "textRange": Object {
102             "endLine": 142,
103             "endOffset": 83,
104             "startLine": 142,
105             "startOffset": 26,
106           },
107           "updateDate": "2013-05-13T17:55:42+0200",
108           "users": Array [
109             Object {
110               "active": true,
111               "local": true,
112               "login": "assignee",
113               "name": "John Doe",
114             },
115             Object {
116               "active": true,
117               "local": true,
118               "login": "author",
119               "name": "John Doe",
120             },
121           ],
122         }
123       }
124       onStatusChange={[Function]}
125     />
126     <div
127       className="display-flex-end"
128     >
129       <div
130         className="display-inline-flex-center it__hs-assignee"
131       >
132         <div
133           className="big-spacer-right"
134         >
135           assignee: 
136         </div>
137         <withCurrentUserContext(Assignee)
138           hotspot={
139             Object {
140               "assignee": "assignee",
141               "assigneeUser": Object {
142                 "active": true,
143                 "local": true,
144                 "login": "assignee",
145                 "name": "John Doe",
146               },
147               "author": "author",
148               "authorUser": Object {
149                 "active": true,
150                 "local": true,
151                 "login": "author",
152                 "name": "John Doe",
153               },
154               "canChangeStatus": true,
155               "changelog": Array [],
156               "comment": Array [],
157               "component": Object {
158                 "key": "hotspot-component",
159                 "longName": "Hotspot component long name",
160                 "name": "Hotspot Component",
161                 "path": "path/to/component",
162                 "qualifier": "FIL",
163               },
164               "creationDate": "2013-05-13T17:55:41+0200",
165               "flows": Array [
166                 Object {
167                   "locations": Array [
168                     Object {
169                       "component": "main.js",
170                       "textRange": Object {
171                         "endLine": 2,
172                         "endOffset": 2,
173                         "startLine": 1,
174                         "startOffset": 1,
175                       },
176                     },
177                   ],
178                 },
179               ],
180               "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
181               "line": 142,
182               "message": "'3' is a magic number.",
183               "project": Object {
184                 "key": "hotspot-component",
185                 "longName": "Hotspot component long name",
186                 "name": "Hotspot Component",
187                 "path": "path/to/component",
188                 "qualifier": "TRK",
189               },
190               "resolution": "FIXED",
191               "rule": Object {
192                 "key": "squid:S2077",
193                 "name": "That rule",
194                 "securityCategory": "sql-injection",
195                 "vulnerabilityProbability": "HIGH",
196               },
197               "status": "REVIEWED",
198               "textRange": Object {
199                 "endLine": 142,
200                 "endOffset": 83,
201                 "startLine": 142,
202                 "startOffset": 26,
203               },
204               "updateDate": "2013-05-13T17:55:42+0200",
205               "users": Array [
206                 Object {
207                   "active": true,
208                   "local": true,
209                   "login": "assignee",
210                   "name": "John Doe",
211                 },
212                 Object {
213                   "active": true,
214                   "local": true,
215                   "login": "author",
216                   "name": "John Doe",
217                 },
218               ],
219             }
220           }
221           onAssigneeChange={[MockFunction]}
222         />
223       </div>
224     </div>
225   </div>
226 </div>
227 `;