]> source.dussan.org Git - sonarqube.git/blob
9f8802f8c9e2c097e02b43168a22d9d6e0d7adf3
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <DeferredSpinner
5   loading={false}
6   timeout={100}
7 >
8   <div
9     className="big-padded"
10   >
11     <div
12       className="big-spacer-bottom"
13     >
14       <div
15         className="display-flex-space-between"
16       >
17         <h1>
18           '3' is a magic number.
19         </h1>
20       </div>
21       <div
22         className="text-muted"
23       >
24         <span>
25           category
26           :
27         </span>
28         <span
29           className="little-spacer-left"
30         >
31           SQL injection
32         </span>
33       </div>
34     </div>
35     <div
36       className="display-flex-row huge-spacer-bottom"
37     >
38       <Connect(withCurrentUser(Assignee))
39         hotspot={
40           Object {
41             "assignee": "assignee",
42             "assigneeUser": Object {
43               "active": true,
44               "local": true,
45               "login": "assignee",
46               "name": "John Doe",
47             },
48             "author": "author",
49             "authorUser": Object {
50               "active": true,
51               "local": true,
52               "login": "author",
53               "name": "John Doe",
54             },
55             "canChangeStatus": true,
56             "changelog": Array [],
57             "comment": Array [],
58             "component": Object {
59               "breadcrumbs": Array [],
60               "key": "my-project",
61               "name": "MyProject",
62               "organization": "foo",
63               "qualifier": "FIL",
64               "qualityGate": Object {
65                 "isDefault": true,
66                 "key": "30",
67                 "name": "Sonar way",
68               },
69               "qualityProfiles": Array [
70                 Object {
71                   "deleted": false,
72                   "key": "my-qp",
73                   "language": "ts",
74                   "name": "Sonar way",
75                 },
76               ],
77               "tags": Array [],
78             },
79             "creationDate": "2013-05-13T17:55:41+0200",
80             "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
81             "line": 142,
82             "message": "'3' is a magic number.",
83             "project": Object {
84               "breadcrumbs": Array [],
85               "key": "my-project",
86               "name": "MyProject",
87               "organization": "foo",
88               "qualifier": "TRK",
89               "qualityGate": Object {
90                 "isDefault": true,
91                 "key": "30",
92                 "name": "Sonar way",
93               },
94               "qualityProfiles": Array [
95                 Object {
96                   "deleted": false,
97                   "key": "my-qp",
98                   "language": "ts",
99                   "name": "Sonar way",
100                 },
101               ],
102               "tags": Array [],
103             },
104             "resolution": "FIXED",
105             "rule": Object {
106               "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
107               "key": "squid:S2077",
108               "name": "That rule",
109               "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
110               "securityCategory": "sql-injection",
111               "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
112               "vulnerabilityProbability": "HIGH",
113             },
114             "status": "REVIEWED",
115             "textRange": Object {
116               "endLine": 142,
117               "endOffset": 83,
118               "startLine": 142,
119               "startOffset": 26,
120             },
121             "updateDate": "2013-05-13T17:55:42+0200",
122             "users": Array [
123               Object {
124                 "active": true,
125                 "local": true,
126                 "login": "assignee",
127                 "name": "John Doe",
128               },
129               Object {
130                 "active": true,
131                 "local": true,
132                 "login": "author",
133                 "name": "John Doe",
134               },
135             ],
136           }
137         }
138         onAssigneeChange={[MockFunction]}
139       />
140       <Connect(withCurrentUser(Status))
141         hotspot={
142           Object {
143             "assignee": "assignee",
144             "assigneeUser": Object {
145               "active": true,
146               "local": true,
147               "login": "assignee",
148               "name": "John Doe",
149             },
150             "author": "author",
151             "authorUser": Object {
152               "active": true,
153               "local": true,
154               "login": "author",
155               "name": "John Doe",
156             },
157             "canChangeStatus": true,
158             "changelog": Array [],
159             "comment": Array [],
160             "component": Object {
161               "breadcrumbs": Array [],
162               "key": "my-project",
163               "name": "MyProject",
164               "organization": "foo",
165               "qualifier": "FIL",
166               "qualityGate": Object {
167                 "isDefault": true,
168                 "key": "30",
169                 "name": "Sonar way",
170               },
171               "qualityProfiles": Array [
172                 Object {
173                   "deleted": false,
174                   "key": "my-qp",
175                   "language": "ts",
176                   "name": "Sonar way",
177                 },
178               ],
179               "tags": Array [],
180             },
181             "creationDate": "2013-05-13T17:55:41+0200",
182             "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
183             "line": 142,
184             "message": "'3' is a magic number.",
185             "project": Object {
186               "breadcrumbs": Array [],
187               "key": "my-project",
188               "name": "MyProject",
189               "organization": "foo",
190               "qualifier": "TRK",
191               "qualityGate": Object {
192                 "isDefault": true,
193                 "key": "30",
194                 "name": "Sonar way",
195               },
196               "qualityProfiles": Array [
197                 Object {
198                   "deleted": false,
199                   "key": "my-qp",
200                   "language": "ts",
201                   "name": "Sonar way",
202                 },
203               ],
204               "tags": Array [],
205             },
206             "resolution": "FIXED",
207             "rule": Object {
208               "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
209               "key": "squid:S2077",
210               "name": "That rule",
211               "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
212               "securityCategory": "sql-injection",
213               "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
214               "vulnerabilityProbability": "HIGH",
215             },
216             "status": "REVIEWED",
217             "textRange": Object {
218               "endLine": 142,
219               "endOffset": 83,
220               "startLine": 142,
221               "startOffset": 26,
222             },
223             "updateDate": "2013-05-13T17:55:42+0200",
224             "users": Array [
225               Object {
226                 "active": true,
227                 "local": true,
228                 "login": "assignee",
229                 "name": "John Doe",
230               },
231               Object {
232                 "active": true,
233                 "local": true,
234                 "login": "author",
235                 "name": "John Doe",
236               },
237             ],
238           }
239         }
240         onStatusChange={[MockFunction]}
241       />
242     </div>
243     <HotspotSnippetContainer
244       hotspot={
245         Object {
246           "assignee": "assignee",
247           "assigneeUser": Object {
248             "active": true,
249             "local": true,
250             "login": "assignee",
251             "name": "John Doe",
252           },
253           "author": "author",
254           "authorUser": Object {
255             "active": true,
256             "local": true,
257             "login": "author",
258             "name": "John Doe",
259           },
260           "canChangeStatus": true,
261           "changelog": Array [],
262           "comment": Array [],
263           "component": Object {
264             "breadcrumbs": Array [],
265             "key": "my-project",
266             "name": "MyProject",
267             "organization": "foo",
268             "qualifier": "FIL",
269             "qualityGate": Object {
270               "isDefault": true,
271               "key": "30",
272               "name": "Sonar way",
273             },
274             "qualityProfiles": Array [
275               Object {
276                 "deleted": false,
277                 "key": "my-qp",
278                 "language": "ts",
279                 "name": "Sonar way",
280               },
281             ],
282             "tags": Array [],
283           },
284           "creationDate": "2013-05-13T17:55:41+0200",
285           "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
286           "line": 142,
287           "message": "'3' is a magic number.",
288           "project": Object {
289             "breadcrumbs": Array [],
290             "key": "my-project",
291             "name": "MyProject",
292             "organization": "foo",
293             "qualifier": "TRK",
294             "qualityGate": Object {
295               "isDefault": true,
296               "key": "30",
297               "name": "Sonar way",
298             },
299             "qualityProfiles": Array [
300               Object {
301                 "deleted": false,
302                 "key": "my-qp",
303                 "language": "ts",
304                 "name": "Sonar way",
305               },
306             ],
307             "tags": Array [],
308           },
309           "resolution": "FIXED",
310           "rule": Object {
311             "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
312             "key": "squid:S2077",
313             "name": "That rule",
314             "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
315             "securityCategory": "sql-injection",
316             "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
317             "vulnerabilityProbability": "HIGH",
318           },
319           "status": "REVIEWED",
320           "textRange": Object {
321             "endLine": 142,
322             "endOffset": 83,
323             "startLine": 142,
324             "startOffset": 26,
325           },
326           "updateDate": "2013-05-13T17:55:42+0200",
327           "users": Array [
328             Object {
329               "active": true,
330               "local": true,
331               "login": "assignee",
332               "name": "John Doe",
333             },
334             Object {
335               "active": true,
336               "local": true,
337               "login": "author",
338               "name": "John Doe",
339             },
340           ],
341         }
342       }
343     />
344     <HotspotViewerTabs
345       hotspot={
346         Object {
347           "assignee": "assignee",
348           "assigneeUser": Object {
349             "active": true,
350             "local": true,
351             "login": "assignee",
352             "name": "John Doe",
353           },
354           "author": "author",
355           "authorUser": Object {
356             "active": true,
357             "local": true,
358             "login": "author",
359             "name": "John Doe",
360           },
361           "canChangeStatus": true,
362           "changelog": Array [],
363           "comment": Array [],
364           "component": Object {
365             "breadcrumbs": Array [],
366             "key": "my-project",
367             "name": "MyProject",
368             "organization": "foo",
369             "qualifier": "FIL",
370             "qualityGate": Object {
371               "isDefault": true,
372               "key": "30",
373               "name": "Sonar way",
374             },
375             "qualityProfiles": Array [
376               Object {
377                 "deleted": false,
378                 "key": "my-qp",
379                 "language": "ts",
380                 "name": "Sonar way",
381               },
382             ],
383             "tags": Array [],
384           },
385           "creationDate": "2013-05-13T17:55:41+0200",
386           "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
387           "line": 142,
388           "message": "'3' is a magic number.",
389           "project": Object {
390             "breadcrumbs": Array [],
391             "key": "my-project",
392             "name": "MyProject",
393             "organization": "foo",
394             "qualifier": "TRK",
395             "qualityGate": Object {
396               "isDefault": true,
397               "key": "30",
398               "name": "Sonar way",
399             },
400             "qualityProfiles": Array [
401               Object {
402                 "deleted": false,
403                 "key": "my-qp",
404                 "language": "ts",
405                 "name": "Sonar way",
406               },
407             ],
408             "tags": Array [],
409           },
410           "resolution": "FIXED",
411           "rule": Object {
412             "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
413             "key": "squid:S2077",
414             "name": "That rule",
415             "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
416             "securityCategory": "sql-injection",
417             "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
418             "vulnerabilityProbability": "HIGH",
419           },
420           "status": "REVIEWED",
421           "textRange": Object {
422             "endLine": 142,
423             "endOffset": 83,
424             "startLine": 142,
425             "startOffset": 26,
426           },
427           "updateDate": "2013-05-13T17:55:42+0200",
428           "users": Array [
429             Object {
430               "active": true,
431               "local": true,
432               "login": "assignee",
433               "name": "John Doe",
434             },
435             Object {
436               "active": true,
437               "local": true,
438               "login": "author",
439               "name": "John Doe",
440             },
441           ],
442         }
443       }
444       onUpdateHotspot={[MockFunction]}
445     />
446   </div>
447 </DeferredSpinner>
448 `;
449
450 exports[`should render correctly: anonymous user 1`] = `
451 <DeferredSpinner
452   loading={false}
453   timeout={100}
454 >
455   <div
456     className="big-padded"
457   >
458     <div
459       className="big-spacer-bottom"
460     >
461       <div
462         className="display-flex-space-between"
463       >
464         <h1>
465           '3' is a magic number.
466         </h1>
467       </div>
468       <div
469         className="text-muted"
470       >
471         <span>
472           category
473           :
474         </span>
475         <span
476           className="little-spacer-left"
477         >
478           SQL injection
479         </span>
480       </div>
481     </div>
482     <div
483       className="display-flex-row huge-spacer-bottom"
484     >
485       <Connect(withCurrentUser(Assignee))
486         hotspot={
487           Object {
488             "assignee": "assignee",
489             "assigneeUser": Object {
490               "active": true,
491               "local": true,
492               "login": "assignee",
493               "name": "John Doe",
494             },
495             "author": "author",
496             "authorUser": Object {
497               "active": true,
498               "local": true,
499               "login": "author",
500               "name": "John Doe",
501             },
502             "canChangeStatus": true,
503             "changelog": Array [],
504             "comment": Array [],
505             "component": Object {
506               "breadcrumbs": Array [],
507               "key": "my-project",
508               "name": "MyProject",
509               "organization": "foo",
510               "qualifier": "FIL",
511               "qualityGate": Object {
512                 "isDefault": true,
513                 "key": "30",
514                 "name": "Sonar way",
515               },
516               "qualityProfiles": Array [
517                 Object {
518                   "deleted": false,
519                   "key": "my-qp",
520                   "language": "ts",
521                   "name": "Sonar way",
522                 },
523               ],
524               "tags": Array [],
525             },
526             "creationDate": "2013-05-13T17:55:41+0200",
527             "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
528             "line": 142,
529             "message": "'3' is a magic number.",
530             "project": Object {
531               "breadcrumbs": Array [],
532               "key": "my-project",
533               "name": "MyProject",
534               "organization": "foo",
535               "qualifier": "TRK",
536               "qualityGate": Object {
537                 "isDefault": true,
538                 "key": "30",
539                 "name": "Sonar way",
540               },
541               "qualityProfiles": Array [
542                 Object {
543                   "deleted": false,
544                   "key": "my-qp",
545                   "language": "ts",
546                   "name": "Sonar way",
547                 },
548               ],
549               "tags": Array [],
550             },
551             "resolution": "FIXED",
552             "rule": Object {
553               "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
554               "key": "squid:S2077",
555               "name": "That rule",
556               "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
557               "securityCategory": "sql-injection",
558               "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
559               "vulnerabilityProbability": "HIGH",
560             },
561             "status": "REVIEWED",
562             "textRange": Object {
563               "endLine": 142,
564               "endOffset": 83,
565               "startLine": 142,
566               "startOffset": 26,
567             },
568             "updateDate": "2013-05-13T17:55:42+0200",
569             "users": Array [
570               Object {
571                 "active": true,
572                 "local": true,
573                 "login": "assignee",
574                 "name": "John Doe",
575               },
576               Object {
577                 "active": true,
578                 "local": true,
579                 "login": "author",
580                 "name": "John Doe",
581               },
582             ],
583           }
584         }
585         onAssigneeChange={[MockFunction]}
586       />
587       <Connect(withCurrentUser(Status))
588         hotspot={
589           Object {
590             "assignee": "assignee",
591             "assigneeUser": Object {
592               "active": true,
593               "local": true,
594               "login": "assignee",
595               "name": "John Doe",
596             },
597             "author": "author",
598             "authorUser": Object {
599               "active": true,
600               "local": true,
601               "login": "author",
602               "name": "John Doe",
603             },
604             "canChangeStatus": true,
605             "changelog": Array [],
606             "comment": Array [],
607             "component": Object {
608               "breadcrumbs": Array [],
609               "key": "my-project",
610               "name": "MyProject",
611               "organization": "foo",
612               "qualifier": "FIL",
613               "qualityGate": Object {
614                 "isDefault": true,
615                 "key": "30",
616                 "name": "Sonar way",
617               },
618               "qualityProfiles": Array [
619                 Object {
620                   "deleted": false,
621                   "key": "my-qp",
622                   "language": "ts",
623                   "name": "Sonar way",
624                 },
625               ],
626               "tags": Array [],
627             },
628             "creationDate": "2013-05-13T17:55:41+0200",
629             "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
630             "line": 142,
631             "message": "'3' is a magic number.",
632             "project": Object {
633               "breadcrumbs": Array [],
634               "key": "my-project",
635               "name": "MyProject",
636               "organization": "foo",
637               "qualifier": "TRK",
638               "qualityGate": Object {
639                 "isDefault": true,
640                 "key": "30",
641                 "name": "Sonar way",
642               },
643               "qualityProfiles": Array [
644                 Object {
645                   "deleted": false,
646                   "key": "my-qp",
647                   "language": "ts",
648                   "name": "Sonar way",
649                 },
650               ],
651               "tags": Array [],
652             },
653             "resolution": "FIXED",
654             "rule": Object {
655               "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
656               "key": "squid:S2077",
657               "name": "That rule",
658               "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
659               "securityCategory": "sql-injection",
660               "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
661               "vulnerabilityProbability": "HIGH",
662             },
663             "status": "REVIEWED",
664             "textRange": Object {
665               "endLine": 142,
666               "endOffset": 83,
667               "startLine": 142,
668               "startOffset": 26,
669             },
670             "updateDate": "2013-05-13T17:55:42+0200",
671             "users": Array [
672               Object {
673                 "active": true,
674                 "local": true,
675                 "login": "assignee",
676                 "name": "John Doe",
677               },
678               Object {
679                 "active": true,
680                 "local": true,
681                 "login": "author",
682                 "name": "John Doe",
683               },
684             ],
685           }
686         }
687         onStatusChange={[MockFunction]}
688       />
689     </div>
690     <HotspotSnippetContainer
691       hotspot={
692         Object {
693           "assignee": "assignee",
694           "assigneeUser": Object {
695             "active": true,
696             "local": true,
697             "login": "assignee",
698             "name": "John Doe",
699           },
700           "author": "author",
701           "authorUser": Object {
702             "active": true,
703             "local": true,
704             "login": "author",
705             "name": "John Doe",
706           },
707           "canChangeStatus": true,
708           "changelog": Array [],
709           "comment": Array [],
710           "component": Object {
711             "breadcrumbs": Array [],
712             "key": "my-project",
713             "name": "MyProject",
714             "organization": "foo",
715             "qualifier": "FIL",
716             "qualityGate": Object {
717               "isDefault": true,
718               "key": "30",
719               "name": "Sonar way",
720             },
721             "qualityProfiles": Array [
722               Object {
723                 "deleted": false,
724                 "key": "my-qp",
725                 "language": "ts",
726                 "name": "Sonar way",
727               },
728             ],
729             "tags": Array [],
730           },
731           "creationDate": "2013-05-13T17:55:41+0200",
732           "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
733           "line": 142,
734           "message": "'3' is a magic number.",
735           "project": Object {
736             "breadcrumbs": Array [],
737             "key": "my-project",
738             "name": "MyProject",
739             "organization": "foo",
740             "qualifier": "TRK",
741             "qualityGate": Object {
742               "isDefault": true,
743               "key": "30",
744               "name": "Sonar way",
745             },
746             "qualityProfiles": Array [
747               Object {
748                 "deleted": false,
749                 "key": "my-qp",
750                 "language": "ts",
751                 "name": "Sonar way",
752               },
753             ],
754             "tags": Array [],
755           },
756           "resolution": "FIXED",
757           "rule": Object {
758             "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
759             "key": "squid:S2077",
760             "name": "That rule",
761             "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
762             "securityCategory": "sql-injection",
763             "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
764             "vulnerabilityProbability": "HIGH",
765           },
766           "status": "REVIEWED",
767           "textRange": Object {
768             "endLine": 142,
769             "endOffset": 83,
770             "startLine": 142,
771             "startOffset": 26,
772           },
773           "updateDate": "2013-05-13T17:55:42+0200",
774           "users": Array [
775             Object {
776               "active": true,
777               "local": true,
778               "login": "assignee",
779               "name": "John Doe",
780             },
781             Object {
782               "active": true,
783               "local": true,
784               "login": "author",
785               "name": "John Doe",
786             },
787           ],
788         }
789       }
790     />
791     <HotspotViewerTabs
792       hotspot={
793         Object {
794           "assignee": "assignee",
795           "assigneeUser": Object {
796             "active": true,
797             "local": true,
798             "login": "assignee",
799             "name": "John Doe",
800           },
801           "author": "author",
802           "authorUser": Object {
803             "active": true,
804             "local": true,
805             "login": "author",
806             "name": "John Doe",
807           },
808           "canChangeStatus": true,
809           "changelog": Array [],
810           "comment": Array [],
811           "component": Object {
812             "breadcrumbs": Array [],
813             "key": "my-project",
814             "name": "MyProject",
815             "organization": "foo",
816             "qualifier": "FIL",
817             "qualityGate": Object {
818               "isDefault": true,
819               "key": "30",
820               "name": "Sonar way",
821             },
822             "qualityProfiles": Array [
823               Object {
824                 "deleted": false,
825                 "key": "my-qp",
826                 "language": "ts",
827                 "name": "Sonar way",
828               },
829             ],
830             "tags": Array [],
831           },
832           "creationDate": "2013-05-13T17:55:41+0200",
833           "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
834           "line": 142,
835           "message": "'3' is a magic number.",
836           "project": Object {
837             "breadcrumbs": Array [],
838             "key": "my-project",
839             "name": "MyProject",
840             "organization": "foo",
841             "qualifier": "TRK",
842             "qualityGate": Object {
843               "isDefault": true,
844               "key": "30",
845               "name": "Sonar way",
846             },
847             "qualityProfiles": Array [
848               Object {
849                 "deleted": false,
850                 "key": "my-qp",
851                 "language": "ts",
852                 "name": "Sonar way",
853               },
854             ],
855             "tags": Array [],
856           },
857           "resolution": "FIXED",
858           "rule": Object {
859             "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
860             "key": "squid:S2077",
861             "name": "That rule",
862             "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
863             "securityCategory": "sql-injection",
864             "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
865             "vulnerabilityProbability": "HIGH",
866           },
867           "status": "REVIEWED",
868           "textRange": Object {
869             "endLine": 142,
870             "endOffset": 83,
871             "startLine": 142,
872             "startOffset": 26,
873           },
874           "updateDate": "2013-05-13T17:55:42+0200",
875           "users": Array [
876             Object {
877               "active": true,
878               "local": true,
879               "login": "assignee",
880               "name": "John Doe",
881             },
882             Object {
883               "active": true,
884               "local": true,
885               "login": "author",
886               "name": "John Doe",
887             },
888           ],
889         }
890       }
891       onUpdateHotspot={[MockFunction]}
892     />
893   </div>
894 </DeferredSpinner>
895 `;
896
897 exports[`should render correctly: assignee without name 1`] = `
898 <DeferredSpinner
899   loading={false}
900   timeout={100}
901 >
902   <div
903     className="big-padded"
904   >
905     <div
906       className="big-spacer-bottom"
907     >
908       <div
909         className="display-flex-space-between"
910       >
911         <h1>
912           '3' is a magic number.
913         </h1>
914       </div>
915       <div
916         className="text-muted"
917       >
918         <span>
919           category
920           :
921         </span>
922         <span
923           className="little-spacer-left"
924         >
925           SQL injection
926         </span>
927       </div>
928     </div>
929     <div
930       className="display-flex-row huge-spacer-bottom"
931     >
932       <Connect(withCurrentUser(Assignee))
933         hotspot={
934           Object {
935             "assignee": "assignee",
936             "assigneeUser": Object {
937               "active": true,
938               "local": true,
939               "login": "assignee_login",
940               "name": undefined,
941             },
942             "author": "author",
943             "authorUser": Object {
944               "active": true,
945               "local": true,
946               "login": "author",
947               "name": "John Doe",
948             },
949             "canChangeStatus": true,
950             "changelog": Array [],
951             "comment": Array [],
952             "component": Object {
953               "breadcrumbs": Array [],
954               "key": "my-project",
955               "name": "MyProject",
956               "organization": "foo",
957               "qualifier": "FIL",
958               "qualityGate": Object {
959                 "isDefault": true,
960                 "key": "30",
961                 "name": "Sonar way",
962               },
963               "qualityProfiles": Array [
964                 Object {
965                   "deleted": false,
966                   "key": "my-qp",
967                   "language": "ts",
968                   "name": "Sonar way",
969                 },
970               ],
971               "tags": Array [],
972             },
973             "creationDate": "2013-05-13T17:55:41+0200",
974             "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
975             "line": 142,
976             "message": "'3' is a magic number.",
977             "project": Object {
978               "breadcrumbs": Array [],
979               "key": "my-project",
980               "name": "MyProject",
981               "organization": "foo",
982               "qualifier": "TRK",
983               "qualityGate": Object {
984                 "isDefault": true,
985                 "key": "30",
986                 "name": "Sonar way",
987               },
988               "qualityProfiles": Array [
989                 Object {
990                   "deleted": false,
991                   "key": "my-qp",
992                   "language": "ts",
993                   "name": "Sonar way",
994                 },
995               ],
996               "tags": Array [],
997             },
998             "resolution": "FIXED",
999             "rule": Object {
1000               "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1001               "key": "squid:S2077",
1002               "name": "That rule",
1003               "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1004               "securityCategory": "sql-injection",
1005               "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1006               "vulnerabilityProbability": "HIGH",
1007             },
1008             "status": "REVIEWED",
1009             "textRange": Object {
1010               "endLine": 142,
1011               "endOffset": 83,
1012               "startLine": 142,
1013               "startOffset": 26,
1014             },
1015             "updateDate": "2013-05-13T17:55:42+0200",
1016             "users": Array [
1017               Object {
1018                 "active": true,
1019                 "local": true,
1020                 "login": "assignee",
1021                 "name": "John Doe",
1022               },
1023               Object {
1024                 "active": true,
1025                 "local": true,
1026                 "login": "author",
1027                 "name": "John Doe",
1028               },
1029             ],
1030           }
1031         }
1032         onAssigneeChange={[MockFunction]}
1033       />
1034       <Connect(withCurrentUser(Status))
1035         hotspot={
1036           Object {
1037             "assignee": "assignee",
1038             "assigneeUser": Object {
1039               "active": true,
1040               "local": true,
1041               "login": "assignee_login",
1042               "name": undefined,
1043             },
1044             "author": "author",
1045             "authorUser": Object {
1046               "active": true,
1047               "local": true,
1048               "login": "author",
1049               "name": "John Doe",
1050             },
1051             "canChangeStatus": true,
1052             "changelog": Array [],
1053             "comment": Array [],
1054             "component": Object {
1055               "breadcrumbs": Array [],
1056               "key": "my-project",
1057               "name": "MyProject",
1058               "organization": "foo",
1059               "qualifier": "FIL",
1060               "qualityGate": Object {
1061                 "isDefault": true,
1062                 "key": "30",
1063                 "name": "Sonar way",
1064               },
1065               "qualityProfiles": Array [
1066                 Object {
1067                   "deleted": false,
1068                   "key": "my-qp",
1069                   "language": "ts",
1070                   "name": "Sonar way",
1071                 },
1072               ],
1073               "tags": Array [],
1074             },
1075             "creationDate": "2013-05-13T17:55:41+0200",
1076             "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1077             "line": 142,
1078             "message": "'3' is a magic number.",
1079             "project": Object {
1080               "breadcrumbs": Array [],
1081               "key": "my-project",
1082               "name": "MyProject",
1083               "organization": "foo",
1084               "qualifier": "TRK",
1085               "qualityGate": Object {
1086                 "isDefault": true,
1087                 "key": "30",
1088                 "name": "Sonar way",
1089               },
1090               "qualityProfiles": Array [
1091                 Object {
1092                   "deleted": false,
1093                   "key": "my-qp",
1094                   "language": "ts",
1095                   "name": "Sonar way",
1096                 },
1097               ],
1098               "tags": Array [],
1099             },
1100             "resolution": "FIXED",
1101             "rule": Object {
1102               "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1103               "key": "squid:S2077",
1104               "name": "That rule",
1105               "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1106               "securityCategory": "sql-injection",
1107               "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1108               "vulnerabilityProbability": "HIGH",
1109             },
1110             "status": "REVIEWED",
1111             "textRange": Object {
1112               "endLine": 142,
1113               "endOffset": 83,
1114               "startLine": 142,
1115               "startOffset": 26,
1116             },
1117             "updateDate": "2013-05-13T17:55:42+0200",
1118             "users": Array [
1119               Object {
1120                 "active": true,
1121                 "local": true,
1122                 "login": "assignee",
1123                 "name": "John Doe",
1124               },
1125               Object {
1126                 "active": true,
1127                 "local": true,
1128                 "login": "author",
1129                 "name": "John Doe",
1130               },
1131             ],
1132           }
1133         }
1134         onStatusChange={[MockFunction]}
1135       />
1136     </div>
1137     <HotspotSnippetContainer
1138       hotspot={
1139         Object {
1140           "assignee": "assignee",
1141           "assigneeUser": Object {
1142             "active": true,
1143             "local": true,
1144             "login": "assignee_login",
1145             "name": undefined,
1146           },
1147           "author": "author",
1148           "authorUser": Object {
1149             "active": true,
1150             "local": true,
1151             "login": "author",
1152             "name": "John Doe",
1153           },
1154           "canChangeStatus": true,
1155           "changelog": Array [],
1156           "comment": Array [],
1157           "component": Object {
1158             "breadcrumbs": Array [],
1159             "key": "my-project",
1160             "name": "MyProject",
1161             "organization": "foo",
1162             "qualifier": "FIL",
1163             "qualityGate": Object {
1164               "isDefault": true,
1165               "key": "30",
1166               "name": "Sonar way",
1167             },
1168             "qualityProfiles": Array [
1169               Object {
1170                 "deleted": false,
1171                 "key": "my-qp",
1172                 "language": "ts",
1173                 "name": "Sonar way",
1174               },
1175             ],
1176             "tags": Array [],
1177           },
1178           "creationDate": "2013-05-13T17:55:41+0200",
1179           "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1180           "line": 142,
1181           "message": "'3' is a magic number.",
1182           "project": Object {
1183             "breadcrumbs": Array [],
1184             "key": "my-project",
1185             "name": "MyProject",
1186             "organization": "foo",
1187             "qualifier": "TRK",
1188             "qualityGate": Object {
1189               "isDefault": true,
1190               "key": "30",
1191               "name": "Sonar way",
1192             },
1193             "qualityProfiles": Array [
1194               Object {
1195                 "deleted": false,
1196                 "key": "my-qp",
1197                 "language": "ts",
1198                 "name": "Sonar way",
1199               },
1200             ],
1201             "tags": Array [],
1202           },
1203           "resolution": "FIXED",
1204           "rule": Object {
1205             "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1206             "key": "squid:S2077",
1207             "name": "That rule",
1208             "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1209             "securityCategory": "sql-injection",
1210             "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1211             "vulnerabilityProbability": "HIGH",
1212           },
1213           "status": "REVIEWED",
1214           "textRange": Object {
1215             "endLine": 142,
1216             "endOffset": 83,
1217             "startLine": 142,
1218             "startOffset": 26,
1219           },
1220           "updateDate": "2013-05-13T17:55:42+0200",
1221           "users": Array [
1222             Object {
1223               "active": true,
1224               "local": true,
1225               "login": "assignee",
1226               "name": "John Doe",
1227             },
1228             Object {
1229               "active": true,
1230               "local": true,
1231               "login": "author",
1232               "name": "John Doe",
1233             },
1234           ],
1235         }
1236       }
1237     />
1238     <HotspotViewerTabs
1239       hotspot={
1240         Object {
1241           "assignee": "assignee",
1242           "assigneeUser": Object {
1243             "active": true,
1244             "local": true,
1245             "login": "assignee_login",
1246             "name": undefined,
1247           },
1248           "author": "author",
1249           "authorUser": Object {
1250             "active": true,
1251             "local": true,
1252             "login": "author",
1253             "name": "John Doe",
1254           },
1255           "canChangeStatus": true,
1256           "changelog": Array [],
1257           "comment": Array [],
1258           "component": Object {
1259             "breadcrumbs": Array [],
1260             "key": "my-project",
1261             "name": "MyProject",
1262             "organization": "foo",
1263             "qualifier": "FIL",
1264             "qualityGate": Object {
1265               "isDefault": true,
1266               "key": "30",
1267               "name": "Sonar way",
1268             },
1269             "qualityProfiles": Array [
1270               Object {
1271                 "deleted": false,
1272                 "key": "my-qp",
1273                 "language": "ts",
1274                 "name": "Sonar way",
1275               },
1276             ],
1277             "tags": Array [],
1278           },
1279           "creationDate": "2013-05-13T17:55:41+0200",
1280           "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1281           "line": 142,
1282           "message": "'3' is a magic number.",
1283           "project": Object {
1284             "breadcrumbs": Array [],
1285             "key": "my-project",
1286             "name": "MyProject",
1287             "organization": "foo",
1288             "qualifier": "TRK",
1289             "qualityGate": Object {
1290               "isDefault": true,
1291               "key": "30",
1292               "name": "Sonar way",
1293             },
1294             "qualityProfiles": Array [
1295               Object {
1296                 "deleted": false,
1297                 "key": "my-qp",
1298                 "language": "ts",
1299                 "name": "Sonar way",
1300               },
1301             ],
1302             "tags": Array [],
1303           },
1304           "resolution": "FIXED",
1305           "rule": Object {
1306             "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1307             "key": "squid:S2077",
1308             "name": "That rule",
1309             "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1310             "securityCategory": "sql-injection",
1311             "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1312             "vulnerabilityProbability": "HIGH",
1313           },
1314           "status": "REVIEWED",
1315           "textRange": Object {
1316             "endLine": 142,
1317             "endOffset": 83,
1318             "startLine": 142,
1319             "startOffset": 26,
1320           },
1321           "updateDate": "2013-05-13T17:55:42+0200",
1322           "users": Array [
1323             Object {
1324               "active": true,
1325               "local": true,
1326               "login": "assignee",
1327               "name": "John Doe",
1328             },
1329             Object {
1330               "active": true,
1331               "local": true,
1332               "login": "author",
1333               "name": "John Doe",
1334             },
1335           ],
1336         }
1337       }
1338       onUpdateHotspot={[MockFunction]}
1339     />
1340   </div>
1341 </DeferredSpinner>
1342 `;
1343
1344 exports[`should render correctly: deleted assignee 1`] = `
1345 <DeferredSpinner
1346   loading={false}
1347   timeout={100}
1348 >
1349   <div
1350     className="big-padded"
1351   >
1352     <div
1353       className="big-spacer-bottom"
1354     >
1355       <div
1356         className="display-flex-space-between"
1357       >
1358         <h1>
1359           '3' is a magic number.
1360         </h1>
1361       </div>
1362       <div
1363         className="text-muted"
1364       >
1365         <span>
1366           category
1367           :
1368         </span>
1369         <span
1370           className="little-spacer-left"
1371         >
1372           SQL injection
1373         </span>
1374       </div>
1375     </div>
1376     <div
1377       className="display-flex-row huge-spacer-bottom"
1378     >
1379       <Connect(withCurrentUser(Assignee))
1380         hotspot={
1381           Object {
1382             "assignee": "assignee",
1383             "assigneeUser": Object {
1384               "active": false,
1385               "local": true,
1386               "login": "john.doe",
1387               "name": "John Doe",
1388             },
1389             "author": "author",
1390             "authorUser": Object {
1391               "active": true,
1392               "local": true,
1393               "login": "author",
1394               "name": "John Doe",
1395             },
1396             "canChangeStatus": true,
1397             "changelog": Array [],
1398             "comment": Array [],
1399             "component": Object {
1400               "breadcrumbs": Array [],
1401               "key": "my-project",
1402               "name": "MyProject",
1403               "organization": "foo",
1404               "qualifier": "FIL",
1405               "qualityGate": Object {
1406                 "isDefault": true,
1407                 "key": "30",
1408                 "name": "Sonar way",
1409               },
1410               "qualityProfiles": Array [
1411                 Object {
1412                   "deleted": false,
1413                   "key": "my-qp",
1414                   "language": "ts",
1415                   "name": "Sonar way",
1416                 },
1417               ],
1418               "tags": Array [],
1419             },
1420             "creationDate": "2013-05-13T17:55:41+0200",
1421             "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1422             "line": 142,
1423             "message": "'3' is a magic number.",
1424             "project": Object {
1425               "breadcrumbs": Array [],
1426               "key": "my-project",
1427               "name": "MyProject",
1428               "organization": "foo",
1429               "qualifier": "TRK",
1430               "qualityGate": Object {
1431                 "isDefault": true,
1432                 "key": "30",
1433                 "name": "Sonar way",
1434               },
1435               "qualityProfiles": Array [
1436                 Object {
1437                   "deleted": false,
1438                   "key": "my-qp",
1439                   "language": "ts",
1440                   "name": "Sonar way",
1441                 },
1442               ],
1443               "tags": Array [],
1444             },
1445             "resolution": "FIXED",
1446             "rule": Object {
1447               "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1448               "key": "squid:S2077",
1449               "name": "That rule",
1450               "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1451               "securityCategory": "sql-injection",
1452               "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1453               "vulnerabilityProbability": "HIGH",
1454             },
1455             "status": "REVIEWED",
1456             "textRange": Object {
1457               "endLine": 142,
1458               "endOffset": 83,
1459               "startLine": 142,
1460               "startOffset": 26,
1461             },
1462             "updateDate": "2013-05-13T17:55:42+0200",
1463             "users": Array [
1464               Object {
1465                 "active": true,
1466                 "local": true,
1467                 "login": "assignee",
1468                 "name": "John Doe",
1469               },
1470               Object {
1471                 "active": true,
1472                 "local": true,
1473                 "login": "author",
1474                 "name": "John Doe",
1475               },
1476             ],
1477           }
1478         }
1479         onAssigneeChange={[MockFunction]}
1480       />
1481       <Connect(withCurrentUser(Status))
1482         hotspot={
1483           Object {
1484             "assignee": "assignee",
1485             "assigneeUser": Object {
1486               "active": false,
1487               "local": true,
1488               "login": "john.doe",
1489               "name": "John Doe",
1490             },
1491             "author": "author",
1492             "authorUser": Object {
1493               "active": true,
1494               "local": true,
1495               "login": "author",
1496               "name": "John Doe",
1497             },
1498             "canChangeStatus": true,
1499             "changelog": Array [],
1500             "comment": Array [],
1501             "component": Object {
1502               "breadcrumbs": Array [],
1503               "key": "my-project",
1504               "name": "MyProject",
1505               "organization": "foo",
1506               "qualifier": "FIL",
1507               "qualityGate": Object {
1508                 "isDefault": true,
1509                 "key": "30",
1510                 "name": "Sonar way",
1511               },
1512               "qualityProfiles": Array [
1513                 Object {
1514                   "deleted": false,
1515                   "key": "my-qp",
1516                   "language": "ts",
1517                   "name": "Sonar way",
1518                 },
1519               ],
1520               "tags": Array [],
1521             },
1522             "creationDate": "2013-05-13T17:55:41+0200",
1523             "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1524             "line": 142,
1525             "message": "'3' is a magic number.",
1526             "project": Object {
1527               "breadcrumbs": Array [],
1528               "key": "my-project",
1529               "name": "MyProject",
1530               "organization": "foo",
1531               "qualifier": "TRK",
1532               "qualityGate": Object {
1533                 "isDefault": true,
1534                 "key": "30",
1535                 "name": "Sonar way",
1536               },
1537               "qualityProfiles": Array [
1538                 Object {
1539                   "deleted": false,
1540                   "key": "my-qp",
1541                   "language": "ts",
1542                   "name": "Sonar way",
1543                 },
1544               ],
1545               "tags": Array [],
1546             },
1547             "resolution": "FIXED",
1548             "rule": Object {
1549               "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1550               "key": "squid:S2077",
1551               "name": "That rule",
1552               "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1553               "securityCategory": "sql-injection",
1554               "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1555               "vulnerabilityProbability": "HIGH",
1556             },
1557             "status": "REVIEWED",
1558             "textRange": Object {
1559               "endLine": 142,
1560               "endOffset": 83,
1561               "startLine": 142,
1562               "startOffset": 26,
1563             },
1564             "updateDate": "2013-05-13T17:55:42+0200",
1565             "users": Array [
1566               Object {
1567                 "active": true,
1568                 "local": true,
1569                 "login": "assignee",
1570                 "name": "John Doe",
1571               },
1572               Object {
1573                 "active": true,
1574                 "local": true,
1575                 "login": "author",
1576                 "name": "John Doe",
1577               },
1578             ],
1579           }
1580         }
1581         onStatusChange={[MockFunction]}
1582       />
1583     </div>
1584     <HotspotSnippetContainer
1585       hotspot={
1586         Object {
1587           "assignee": "assignee",
1588           "assigneeUser": Object {
1589             "active": false,
1590             "local": true,
1591             "login": "john.doe",
1592             "name": "John Doe",
1593           },
1594           "author": "author",
1595           "authorUser": Object {
1596             "active": true,
1597             "local": true,
1598             "login": "author",
1599             "name": "John Doe",
1600           },
1601           "canChangeStatus": true,
1602           "changelog": Array [],
1603           "comment": Array [],
1604           "component": Object {
1605             "breadcrumbs": Array [],
1606             "key": "my-project",
1607             "name": "MyProject",
1608             "organization": "foo",
1609             "qualifier": "FIL",
1610             "qualityGate": Object {
1611               "isDefault": true,
1612               "key": "30",
1613               "name": "Sonar way",
1614             },
1615             "qualityProfiles": Array [
1616               Object {
1617                 "deleted": false,
1618                 "key": "my-qp",
1619                 "language": "ts",
1620                 "name": "Sonar way",
1621               },
1622             ],
1623             "tags": Array [],
1624           },
1625           "creationDate": "2013-05-13T17:55:41+0200",
1626           "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1627           "line": 142,
1628           "message": "'3' is a magic number.",
1629           "project": Object {
1630             "breadcrumbs": Array [],
1631             "key": "my-project",
1632             "name": "MyProject",
1633             "organization": "foo",
1634             "qualifier": "TRK",
1635             "qualityGate": Object {
1636               "isDefault": true,
1637               "key": "30",
1638               "name": "Sonar way",
1639             },
1640             "qualityProfiles": Array [
1641               Object {
1642                 "deleted": false,
1643                 "key": "my-qp",
1644                 "language": "ts",
1645                 "name": "Sonar way",
1646               },
1647             ],
1648             "tags": Array [],
1649           },
1650           "resolution": "FIXED",
1651           "rule": Object {
1652             "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1653             "key": "squid:S2077",
1654             "name": "That rule",
1655             "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1656             "securityCategory": "sql-injection",
1657             "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1658             "vulnerabilityProbability": "HIGH",
1659           },
1660           "status": "REVIEWED",
1661           "textRange": Object {
1662             "endLine": 142,
1663             "endOffset": 83,
1664             "startLine": 142,
1665             "startOffset": 26,
1666           },
1667           "updateDate": "2013-05-13T17:55:42+0200",
1668           "users": Array [
1669             Object {
1670               "active": true,
1671               "local": true,
1672               "login": "assignee",
1673               "name": "John Doe",
1674             },
1675             Object {
1676               "active": true,
1677               "local": true,
1678               "login": "author",
1679               "name": "John Doe",
1680             },
1681           ],
1682         }
1683       }
1684     />
1685     <HotspotViewerTabs
1686       hotspot={
1687         Object {
1688           "assignee": "assignee",
1689           "assigneeUser": Object {
1690             "active": false,
1691             "local": true,
1692             "login": "john.doe",
1693             "name": "John Doe",
1694           },
1695           "author": "author",
1696           "authorUser": Object {
1697             "active": true,
1698             "local": true,
1699             "login": "author",
1700             "name": "John Doe",
1701           },
1702           "canChangeStatus": true,
1703           "changelog": Array [],
1704           "comment": Array [],
1705           "component": Object {
1706             "breadcrumbs": Array [],
1707             "key": "my-project",
1708             "name": "MyProject",
1709             "organization": "foo",
1710             "qualifier": "FIL",
1711             "qualityGate": Object {
1712               "isDefault": true,
1713               "key": "30",
1714               "name": "Sonar way",
1715             },
1716             "qualityProfiles": Array [
1717               Object {
1718                 "deleted": false,
1719                 "key": "my-qp",
1720                 "language": "ts",
1721                 "name": "Sonar way",
1722               },
1723             ],
1724             "tags": Array [],
1725           },
1726           "creationDate": "2013-05-13T17:55:41+0200",
1727           "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1728           "line": 142,
1729           "message": "'3' is a magic number.",
1730           "project": Object {
1731             "breadcrumbs": Array [],
1732             "key": "my-project",
1733             "name": "MyProject",
1734             "organization": "foo",
1735             "qualifier": "TRK",
1736             "qualityGate": Object {
1737               "isDefault": true,
1738               "key": "30",
1739               "name": "Sonar way",
1740             },
1741             "qualityProfiles": Array [
1742               Object {
1743                 "deleted": false,
1744                 "key": "my-qp",
1745                 "language": "ts",
1746                 "name": "Sonar way",
1747               },
1748             ],
1749             "tags": Array [],
1750           },
1751           "resolution": "FIXED",
1752           "rule": Object {
1753             "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1754             "key": "squid:S2077",
1755             "name": "That rule",
1756             "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1757             "securityCategory": "sql-injection",
1758             "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1759             "vulnerabilityProbability": "HIGH",
1760           },
1761           "status": "REVIEWED",
1762           "textRange": Object {
1763             "endLine": 142,
1764             "endOffset": 83,
1765             "startLine": 142,
1766             "startOffset": 26,
1767           },
1768           "updateDate": "2013-05-13T17:55:42+0200",
1769           "users": Array [
1770             Object {
1771               "active": true,
1772               "local": true,
1773               "login": "assignee",
1774               "name": "John Doe",
1775             },
1776             Object {
1777               "active": true,
1778               "local": true,
1779               "login": "author",
1780               "name": "John Doe",
1781             },
1782           ],
1783         }
1784       }
1785       onUpdateHotspot={[MockFunction]}
1786     />
1787   </div>
1788 </DeferredSpinner>
1789 `;
1790
1791 exports[`should render correctly: no hotspot 1`] = `
1792 <DeferredSpinner
1793   loading={false}
1794   timeout={100}
1795 />
1796 `;
1797
1798 exports[`should render correctly: unassigned 1`] = `
1799 <DeferredSpinner
1800   loading={false}
1801   timeout={100}
1802 >
1803   <div
1804     className="big-padded"
1805   >
1806     <div
1807       className="big-spacer-bottom"
1808     >
1809       <div
1810         className="display-flex-space-between"
1811       >
1812         <h1>
1813           '3' is a magic number.
1814         </h1>
1815       </div>
1816       <div
1817         className="text-muted"
1818       >
1819         <span>
1820           category
1821           :
1822         </span>
1823         <span
1824           className="little-spacer-left"
1825         >
1826           SQL injection
1827         </span>
1828       </div>
1829     </div>
1830     <div
1831       className="display-flex-row huge-spacer-bottom"
1832     >
1833       <Connect(withCurrentUser(Assignee))
1834         hotspot={
1835           Object {
1836             "assignee": undefined,
1837             "assigneeUser": Object {
1838               "active": true,
1839               "local": true,
1840               "login": "assignee",
1841               "name": "John Doe",
1842             },
1843             "author": "author",
1844             "authorUser": Object {
1845               "active": true,
1846               "local": true,
1847               "login": "author",
1848               "name": "John Doe",
1849             },
1850             "canChangeStatus": true,
1851             "changelog": Array [],
1852             "comment": Array [],
1853             "component": Object {
1854               "breadcrumbs": Array [],
1855               "key": "my-project",
1856               "name": "MyProject",
1857               "organization": "foo",
1858               "qualifier": "FIL",
1859               "qualityGate": Object {
1860                 "isDefault": true,
1861                 "key": "30",
1862                 "name": "Sonar way",
1863               },
1864               "qualityProfiles": Array [
1865                 Object {
1866                   "deleted": false,
1867                   "key": "my-qp",
1868                   "language": "ts",
1869                   "name": "Sonar way",
1870                 },
1871               ],
1872               "tags": Array [],
1873             },
1874             "creationDate": "2013-05-13T17:55:41+0200",
1875             "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1876             "line": 142,
1877             "message": "'3' is a magic number.",
1878             "project": Object {
1879               "breadcrumbs": Array [],
1880               "key": "my-project",
1881               "name": "MyProject",
1882               "organization": "foo",
1883               "qualifier": "TRK",
1884               "qualityGate": Object {
1885                 "isDefault": true,
1886                 "key": "30",
1887                 "name": "Sonar way",
1888               },
1889               "qualityProfiles": Array [
1890                 Object {
1891                   "deleted": false,
1892                   "key": "my-qp",
1893                   "language": "ts",
1894                   "name": "Sonar way",
1895                 },
1896               ],
1897               "tags": Array [],
1898             },
1899             "resolution": "FIXED",
1900             "rule": Object {
1901               "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1902               "key": "squid:S2077",
1903               "name": "That rule",
1904               "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1905               "securityCategory": "sql-injection",
1906               "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1907               "vulnerabilityProbability": "HIGH",
1908             },
1909             "status": "REVIEWED",
1910             "textRange": Object {
1911               "endLine": 142,
1912               "endOffset": 83,
1913               "startLine": 142,
1914               "startOffset": 26,
1915             },
1916             "updateDate": "2013-05-13T17:55:42+0200",
1917             "users": Array [
1918               Object {
1919                 "active": true,
1920                 "local": true,
1921                 "login": "assignee",
1922                 "name": "John Doe",
1923               },
1924               Object {
1925                 "active": true,
1926                 "local": true,
1927                 "login": "author",
1928                 "name": "John Doe",
1929               },
1930             ],
1931           }
1932         }
1933         onAssigneeChange={[MockFunction]}
1934       />
1935       <Connect(withCurrentUser(Status))
1936         hotspot={
1937           Object {
1938             "assignee": undefined,
1939             "assigneeUser": Object {
1940               "active": true,
1941               "local": true,
1942               "login": "assignee",
1943               "name": "John Doe",
1944             },
1945             "author": "author",
1946             "authorUser": Object {
1947               "active": true,
1948               "local": true,
1949               "login": "author",
1950               "name": "John Doe",
1951             },
1952             "canChangeStatus": true,
1953             "changelog": Array [],
1954             "comment": Array [],
1955             "component": Object {
1956               "breadcrumbs": Array [],
1957               "key": "my-project",
1958               "name": "MyProject",
1959               "organization": "foo",
1960               "qualifier": "FIL",
1961               "qualityGate": Object {
1962                 "isDefault": true,
1963                 "key": "30",
1964                 "name": "Sonar way",
1965               },
1966               "qualityProfiles": Array [
1967                 Object {
1968                   "deleted": false,
1969                   "key": "my-qp",
1970                   "language": "ts",
1971                   "name": "Sonar way",
1972                 },
1973               ],
1974               "tags": Array [],
1975             },
1976             "creationDate": "2013-05-13T17:55:41+0200",
1977             "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1978             "line": 142,
1979             "message": "'3' is a magic number.",
1980             "project": Object {
1981               "breadcrumbs": Array [],
1982               "key": "my-project",
1983               "name": "MyProject",
1984               "organization": "foo",
1985               "qualifier": "TRK",
1986               "qualityGate": Object {
1987                 "isDefault": true,
1988                 "key": "30",
1989                 "name": "Sonar way",
1990               },
1991               "qualityProfiles": Array [
1992                 Object {
1993                   "deleted": false,
1994                   "key": "my-qp",
1995                   "language": "ts",
1996                   "name": "Sonar way",
1997                 },
1998               ],
1999               "tags": Array [],
2000             },
2001             "resolution": "FIXED",
2002             "rule": Object {
2003               "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2004               "key": "squid:S2077",
2005               "name": "That rule",
2006               "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2007               "securityCategory": "sql-injection",
2008               "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2009               "vulnerabilityProbability": "HIGH",
2010             },
2011             "status": "REVIEWED",
2012             "textRange": Object {
2013               "endLine": 142,
2014               "endOffset": 83,
2015               "startLine": 142,
2016               "startOffset": 26,
2017             },
2018             "updateDate": "2013-05-13T17:55:42+0200",
2019             "users": Array [
2020               Object {
2021                 "active": true,
2022                 "local": true,
2023                 "login": "assignee",
2024                 "name": "John Doe",
2025               },
2026               Object {
2027                 "active": true,
2028                 "local": true,
2029                 "login": "author",
2030                 "name": "John Doe",
2031               },
2032             ],
2033           }
2034         }
2035         onStatusChange={[MockFunction]}
2036       />
2037     </div>
2038     <HotspotSnippetContainer
2039       hotspot={
2040         Object {
2041           "assignee": undefined,
2042           "assigneeUser": Object {
2043             "active": true,
2044             "local": true,
2045             "login": "assignee",
2046             "name": "John Doe",
2047           },
2048           "author": "author",
2049           "authorUser": Object {
2050             "active": true,
2051             "local": true,
2052             "login": "author",
2053             "name": "John Doe",
2054           },
2055           "canChangeStatus": true,
2056           "changelog": Array [],
2057           "comment": Array [],
2058           "component": Object {
2059             "breadcrumbs": Array [],
2060             "key": "my-project",
2061             "name": "MyProject",
2062             "organization": "foo",
2063             "qualifier": "FIL",
2064             "qualityGate": Object {
2065               "isDefault": true,
2066               "key": "30",
2067               "name": "Sonar way",
2068             },
2069             "qualityProfiles": Array [
2070               Object {
2071                 "deleted": false,
2072                 "key": "my-qp",
2073                 "language": "ts",
2074                 "name": "Sonar way",
2075               },
2076             ],
2077             "tags": Array [],
2078           },
2079           "creationDate": "2013-05-13T17:55:41+0200",
2080           "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2081           "line": 142,
2082           "message": "'3' is a magic number.",
2083           "project": Object {
2084             "breadcrumbs": Array [],
2085             "key": "my-project",
2086             "name": "MyProject",
2087             "organization": "foo",
2088             "qualifier": "TRK",
2089             "qualityGate": Object {
2090               "isDefault": true,
2091               "key": "30",
2092               "name": "Sonar way",
2093             },
2094             "qualityProfiles": Array [
2095               Object {
2096                 "deleted": false,
2097                 "key": "my-qp",
2098                 "language": "ts",
2099                 "name": "Sonar way",
2100               },
2101             ],
2102             "tags": Array [],
2103           },
2104           "resolution": "FIXED",
2105           "rule": Object {
2106             "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2107             "key": "squid:S2077",
2108             "name": "That rule",
2109             "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2110             "securityCategory": "sql-injection",
2111             "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2112             "vulnerabilityProbability": "HIGH",
2113           },
2114           "status": "REVIEWED",
2115           "textRange": Object {
2116             "endLine": 142,
2117             "endOffset": 83,
2118             "startLine": 142,
2119             "startOffset": 26,
2120           },
2121           "updateDate": "2013-05-13T17:55:42+0200",
2122           "users": Array [
2123             Object {
2124               "active": true,
2125               "local": true,
2126               "login": "assignee",
2127               "name": "John Doe",
2128             },
2129             Object {
2130               "active": true,
2131               "local": true,
2132               "login": "author",
2133               "name": "John Doe",
2134             },
2135           ],
2136         }
2137       }
2138     />
2139     <HotspotViewerTabs
2140       hotspot={
2141         Object {
2142           "assignee": undefined,
2143           "assigneeUser": Object {
2144             "active": true,
2145             "local": true,
2146             "login": "assignee",
2147             "name": "John Doe",
2148           },
2149           "author": "author",
2150           "authorUser": Object {
2151             "active": true,
2152             "local": true,
2153             "login": "author",
2154             "name": "John Doe",
2155           },
2156           "canChangeStatus": true,
2157           "changelog": Array [],
2158           "comment": Array [],
2159           "component": Object {
2160             "breadcrumbs": Array [],
2161             "key": "my-project",
2162             "name": "MyProject",
2163             "organization": "foo",
2164             "qualifier": "FIL",
2165             "qualityGate": Object {
2166               "isDefault": true,
2167               "key": "30",
2168               "name": "Sonar way",
2169             },
2170             "qualityProfiles": Array [
2171               Object {
2172                 "deleted": false,
2173                 "key": "my-qp",
2174                 "language": "ts",
2175                 "name": "Sonar way",
2176               },
2177             ],
2178             "tags": Array [],
2179           },
2180           "creationDate": "2013-05-13T17:55:41+0200",
2181           "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2182           "line": 142,
2183           "message": "'3' is a magic number.",
2184           "project": Object {
2185             "breadcrumbs": Array [],
2186             "key": "my-project",
2187             "name": "MyProject",
2188             "organization": "foo",
2189             "qualifier": "TRK",
2190             "qualityGate": Object {
2191               "isDefault": true,
2192               "key": "30",
2193               "name": "Sonar way",
2194             },
2195             "qualityProfiles": Array [
2196               Object {
2197                 "deleted": false,
2198                 "key": "my-qp",
2199                 "language": "ts",
2200                 "name": "Sonar way",
2201               },
2202             ],
2203             "tags": Array [],
2204           },
2205           "resolution": "FIXED",
2206           "rule": Object {
2207             "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2208             "key": "squid:S2077",
2209             "name": "That rule",
2210             "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2211             "securityCategory": "sql-injection",
2212             "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2213             "vulnerabilityProbability": "HIGH",
2214           },
2215           "status": "REVIEWED",
2216           "textRange": Object {
2217             "endLine": 142,
2218             "endOffset": 83,
2219             "startLine": 142,
2220             "startOffset": 26,
2221           },
2222           "updateDate": "2013-05-13T17:55:42+0200",
2223           "users": Array [
2224             Object {
2225               "active": true,
2226               "local": true,
2227               "login": "assignee",
2228               "name": "John Doe",
2229             },
2230             Object {
2231               "active": true,
2232               "local": true,
2233               "login": "author",
2234               "name": "John Doe",
2235             },
2236           ],
2237         }
2238       }
2239       onUpdateHotspot={[MockFunction]}
2240     />
2241   </div>
2242 </DeferredSpinner>
2243 `;