]> source.dussan.org Git - sonarqube.git/blob
0ebc649edc038c8ed1c44f0a39219bb82fb04961
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <Fragment>
5   <h1>
6     hotspot.section.activity
7   </h1>
8   <div
9     className="padded"
10   >
11     <HotspotReviewHistory
12       hotspot={
13         Object {
14           "assignee": "assignee",
15           "assigneeUser": Object {
16             "active": true,
17             "local": true,
18             "login": "assignee",
19             "name": "John Doe",
20           },
21           "author": "author",
22           "authorUser": Object {
23             "active": true,
24             "local": true,
25             "login": "author",
26             "name": "John Doe",
27           },
28           "canChangeStatus": true,
29           "changelog": Array [],
30           "comment": Array [],
31           "component": Object {
32             "breadcrumbs": Array [],
33             "key": "my-project",
34             "name": "MyProject",
35             "qualifier": "FIL",
36             "qualityGate": Object {
37               "isDefault": true,
38               "key": "30",
39               "name": "Sonar way",
40             },
41             "qualityProfiles": Array [
42               Object {
43                 "deleted": false,
44                 "key": "my-qp",
45                 "language": "ts",
46                 "name": "Sonar way",
47               },
48             ],
49             "tags": Array [],
50           },
51           "creationDate": "2013-05-13T17:55:41+0200",
52           "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
53           "line": 142,
54           "message": "'3' is a magic number.",
55           "project": Object {
56             "breadcrumbs": Array [],
57             "key": "my-project",
58             "name": "MyProject",
59             "qualifier": "TRK",
60             "qualityGate": Object {
61               "isDefault": true,
62               "key": "30",
63               "name": "Sonar way",
64             },
65             "qualityProfiles": Array [
66               Object {
67                 "deleted": false,
68                 "key": "my-qp",
69                 "language": "ts",
70                 "name": "Sonar way",
71               },
72             ],
73             "tags": Array [],
74           },
75           "resolution": "FIXED",
76           "rule": Object {
77             "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
78             "key": "squid:S2077",
79             "name": "That rule",
80             "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
81             "securityCategory": "sql-injection",
82             "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
83             "vulnerabilityProbability": "HIGH",
84           },
85           "status": "REVIEWED",
86           "textRange": Object {
87             "endLine": 142,
88             "endOffset": 83,
89             "startLine": 142,
90             "startOffset": 26,
91           },
92           "updateDate": "2013-05-13T17:55:42+0200",
93           "users": Array [
94             Object {
95               "active": true,
96               "local": true,
97               "login": "assignee",
98               "name": "John Doe",
99             },
100             Object {
101               "active": true,
102               "local": true,
103               "login": "author",
104               "name": "John Doe",
105             },
106           ],
107         }
108       }
109       onDeleteComment={[Function]}
110       onEditComment={[Function]}
111     />
112     <hr />
113     <div
114       className="big-spacer-top"
115     >
116       <Button
117         className=""
118         id="hotspot-comment-box-display"
119         onClick={[MockFunction]}
120       >
121         hotspots.comment.open
122       </Button>
123       <div
124         className="invisible"
125       >
126         <div
127           className="little-spacer-bottom"
128         >
129           hotspots.comment.field
130         </div>
131         <textarea
132           className="form-field fixed-width width-100 spacer-bottom"
133           onChange={[Function]}
134           rows={2}
135           value=""
136         />
137         <div
138           className="display-flex-space-between display-flex-center "
139         >
140           <FormattingTips
141             className="huge-spacer-bottom"
142           />
143           <div>
144             <Button
145               className="huge-spacer-bottom"
146               id="hotspot-comment-box-submit"
147               onClick={[Function]}
148             >
149               hotspots.comment.submit
150             </Button>
151             <ResetButtonLink
152               className="spacer-left huge-spacer-bottom"
153               id="hotspot-comment-box-cancel"
154               onClick={[Function]}
155             >
156               cancel
157             </ResetButtonLink>
158           </div>
159         </div>
160       </div>
161     </div>
162   </div>
163 </Fragment>
164 `;
165
166 exports[`should render correctly without user 1`] = `
167 <Fragment>
168   <h1>
169     hotspot.section.activity
170   </h1>
171   <div
172     className="padded"
173   >
174     <HotspotReviewHistory
175       hotspot={
176         Object {
177           "assignee": "assignee",
178           "assigneeUser": Object {
179             "active": true,
180             "local": true,
181             "login": "assignee",
182             "name": "John Doe",
183           },
184           "author": "author",
185           "authorUser": Object {
186             "active": true,
187             "local": true,
188             "login": "author",
189             "name": "John Doe",
190           },
191           "canChangeStatus": true,
192           "changelog": Array [],
193           "comment": Array [],
194           "component": Object {
195             "breadcrumbs": Array [],
196             "key": "my-project",
197             "name": "MyProject",
198             "qualifier": "FIL",
199             "qualityGate": Object {
200               "isDefault": true,
201               "key": "30",
202               "name": "Sonar way",
203             },
204             "qualityProfiles": Array [
205               Object {
206                 "deleted": false,
207                 "key": "my-qp",
208                 "language": "ts",
209                 "name": "Sonar way",
210               },
211             ],
212             "tags": Array [],
213           },
214           "creationDate": "2013-05-13T17:55:41+0200",
215           "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
216           "line": 142,
217           "message": "'3' is a magic number.",
218           "project": Object {
219             "breadcrumbs": Array [],
220             "key": "my-project",
221             "name": "MyProject",
222             "qualifier": "TRK",
223             "qualityGate": Object {
224               "isDefault": true,
225               "key": "30",
226               "name": "Sonar way",
227             },
228             "qualityProfiles": Array [
229               Object {
230                 "deleted": false,
231                 "key": "my-qp",
232                 "language": "ts",
233                 "name": "Sonar way",
234               },
235             ],
236             "tags": Array [],
237           },
238           "resolution": "FIXED",
239           "rule": Object {
240             "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
241             "key": "squid:S2077",
242             "name": "That rule",
243             "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
244             "securityCategory": "sql-injection",
245             "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
246             "vulnerabilityProbability": "HIGH",
247           },
248           "status": "REVIEWED",
249           "textRange": Object {
250             "endLine": 142,
251             "endOffset": 83,
252             "startLine": 142,
253             "startOffset": 26,
254           },
255           "updateDate": "2013-05-13T17:55:42+0200",
256           "users": Array [
257             Object {
258               "active": true,
259               "local": true,
260               "login": "assignee",
261               "name": "John Doe",
262             },
263             Object {
264               "active": true,
265               "local": true,
266               "login": "author",
267               "name": "John Doe",
268             },
269           ],
270         }
271       }
272       onDeleteComment={[Function]}
273       onEditComment={[Function]}
274     />
275   </div>
276 </Fragment>
277 `;