]> source.dussan.org Git - sonarqube.git/blob
9bf2e5f400d736b81237d4d8d1829e8e08d62c95
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should handle collapse and expand 1`] = `
4 <div
5   className="hotspot-category HIGH"
6 >
7   <a
8     className="hotspot-category-header display-flex-space-between display-flex-center"
9     href="#"
10     onClick={[Function]}
11   >
12     <strong
13       className="flex-1"
14     >
15       Class Injection
16     </strong>
17     <span>
18       <span
19         className="hotspot-counter"
20       >
21         1
22       </span>
23       <ChevronDownIcon
24         className="big-spacer-left"
25       />
26     </span>
27   </a>
28 </div>
29 `;
30
31 exports[`should handle collapse and expand 2`] = `
32 <div
33   className="hotspot-category HIGH"
34 >
35   <a
36     className="hotspot-category-header display-flex-space-between display-flex-center"
37     href="#"
38     onClick={[Function]}
39   >
40     <strong
41       className="flex-1"
42     >
43       Class Injection
44     </strong>
45     <span>
46       <span
47         className="hotspot-counter"
48       >
49         1
50       </span>
51       <ChevronUpIcon
52         className="big-spacer-left"
53       />
54     </span>
55   </a>
56   <ul>
57     <li
58       key="01fc972e-2a3c-433e-bcae-0bd7f88f5123"
59     >
60       <HotspotListItem
61         hotspot={
62           Object {
63             "author": "Developer 1",
64             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
65             "creationDate": "2013-05-13T17:55:39+0200",
66             "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
67             "line": 81,
68             "message": "'3' is a magic number.",
69             "project": "com.github.kevinsawicki:http-request",
70             "resolution": undefined,
71             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
72             "securityCategory": "command-injection",
73             "status": "TO_REVIEW",
74             "updateDate": "2013-05-13T17:55:39+0200",
75             "vulnerabilityProbability": "HIGH",
76           }
77         }
78         onClick={[MockFunction]}
79         selected={false}
80       />
81     </li>
82   </ul>
83 </div>
84 `;
85
86 exports[`should render correctly 1`] = `""`;
87
88 exports[`should render correctly with hotspots 1`] = `
89 <div
90   className="hotspot-category HIGH"
91 >
92   <a
93     className="hotspot-category-header display-flex-space-between display-flex-center"
94     href="#"
95     onClick={[Function]}
96   >
97     <strong
98       className="flex-1"
99     >
100       Class Injection
101     </strong>
102     <span>
103       <span
104         className="hotspot-counter"
105       >
106         2
107       </span>
108       <ChevronUpIcon
109         className="big-spacer-left"
110       />
111     </span>
112   </a>
113   <ul>
114     <li
115       key="h1"
116     >
117       <HotspotListItem
118         hotspot={
119           Object {
120             "author": "Developer 1",
121             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
122             "creationDate": "2013-05-13T17:55:39+0200",
123             "key": "h1",
124             "line": 81,
125             "message": "'3' is a magic number.",
126             "project": "com.github.kevinsawicki:http-request",
127             "resolution": undefined,
128             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
129             "securityCategory": "command-injection",
130             "status": "TO_REVIEW",
131             "updateDate": "2013-05-13T17:55:39+0200",
132             "vulnerabilityProbability": "HIGH",
133           }
134         }
135         onClick={[MockFunction]}
136         selected={false}
137       />
138     </li>
139     <li
140       key="h2"
141     >
142       <HotspotListItem
143         hotspot={
144           Object {
145             "author": "Developer 1",
146             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
147             "creationDate": "2013-05-13T17:55:39+0200",
148             "key": "h2",
149             "line": 81,
150             "message": "'3' is a magic number.",
151             "project": "com.github.kevinsawicki:http-request",
152             "resolution": undefined,
153             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
154             "securityCategory": "command-injection",
155             "status": "TO_REVIEW",
156             "updateDate": "2013-05-13T17:55:39+0200",
157             "vulnerabilityProbability": "HIGH",
158           }
159         }
160         onClick={[MockFunction]}
161         selected={false}
162       />
163     </li>
164   </ul>
165 </div>
166 `;