]> source.dussan.org Git - sonarqube.git/blob
a075d958dfeb2d90373a9ed503d257e84d089c11
[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="counter-badge"
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="counter-badge"
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 with hotspots 1`] = `
87 <div
88   className="hotspot-category HIGH"
89 >
90   <a
91     className="hotspot-category-header display-flex-space-between display-flex-center"
92     href="#"
93     onClick={[Function]}
94   >
95     <strong
96       className="flex-1"
97     >
98       Class Injection
99     </strong>
100     <span>
101       <span
102         className="counter-badge"
103       >
104         2
105       </span>
106       <ChevronUpIcon
107         className="big-spacer-left"
108       />
109     </span>
110   </a>
111   <ul>
112     <li
113       key="h1"
114     >
115       <HotspotListItem
116         hotspot={
117           Object {
118             "author": "Developer 1",
119             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
120             "creationDate": "2013-05-13T17:55:39+0200",
121             "key": "h1",
122             "line": 81,
123             "message": "'3' is a magic number.",
124             "project": "com.github.kevinsawicki:http-request",
125             "resolution": undefined,
126             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
127             "securityCategory": "command-injection",
128             "status": "TO_REVIEW",
129             "updateDate": "2013-05-13T17:55:39+0200",
130             "vulnerabilityProbability": "HIGH",
131           }
132         }
133         onClick={[MockFunction]}
134         selected={false}
135       />
136     </li>
137     <li
138       key="h2"
139     >
140       <HotspotListItem
141         hotspot={
142           Object {
143             "author": "Developer 1",
144             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
145             "creationDate": "2013-05-13T17:55:39+0200",
146             "key": "h2",
147             "line": 81,
148             "message": "'3' is a magic number.",
149             "project": "com.github.kevinsawicki:http-request",
150             "resolution": undefined,
151             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
152             "securityCategory": "command-injection",
153             "status": "TO_REVIEW",
154             "updateDate": "2013-05-13T17:55:39+0200",
155             "vulnerabilityProbability": "HIGH",
156           }
157         }
158         onClick={[MockFunction]}
159         selected={false}
160       />
161     </li>
162   </ul>
163 </div>
164 `;
165
166 exports[`should render correctly with hotspots: collapsed 1`] = `
167 <div
168   className="hotspot-category HIGH"
169 >
170   <a
171     className="hotspot-category-header display-flex-space-between display-flex-center"
172     href="#"
173     onClick={[Function]}
174   >
175     <strong
176       className="flex-1"
177     >
178       Class Injection
179     </strong>
180     <span>
181       <span
182         className="counter-badge"
183       >
184         2
185       </span>
186       <ChevronDownIcon
187         className="big-spacer-left"
188       />
189     </span>
190   </a>
191 </div>
192 `;
193
194 exports[`should render correctly: empty 1`] = `""`;