]> source.dussan.org Git - sonarqube.git/blob
892425e8a150500edb42544368de54431520ec90
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly with hotspots 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         2
22       </span>
23       <ChevronUpIcon
24         className="big-spacer-left"
25       />
26     </span>
27   </a>
28   <ul>
29     <li
30       key="h1"
31     >
32       <HotspotListItem
33         hotspot={
34           Object {
35             "author": "Developer 1",
36             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
37             "creationDate": "2013-05-13T17:55:39+0200",
38             "key": "h1",
39             "line": 81,
40             "message": "'3' is a magic number.",
41             "project": "com.github.kevinsawicki:http-request",
42             "resolution": undefined,
43             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
44             "securityCategory": "command-injection",
45             "status": "TO_REVIEW",
46             "updateDate": "2013-05-13T17:55:39+0200",
47             "vulnerabilityProbability": "HIGH",
48           }
49         }
50         onClick={[MockFunction]}
51         selected={false}
52       />
53     </li>
54     <li
55       key="h2"
56     >
57       <HotspotListItem
58         hotspot={
59           Object {
60             "author": "Developer 1",
61             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
62             "creationDate": "2013-05-13T17:55:39+0200",
63             "key": "h2",
64             "line": 81,
65             "message": "'3' is a magic number.",
66             "project": "com.github.kevinsawicki:http-request",
67             "resolution": undefined,
68             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
69             "securityCategory": "command-injection",
70             "status": "TO_REVIEW",
71             "updateDate": "2013-05-13T17:55:39+0200",
72             "vulnerabilityProbability": "HIGH",
73           }
74         }
75         onClick={[MockFunction]}
76         selected={false}
77       />
78     </li>
79   </ul>
80 </div>
81 `;
82
83 exports[`should render correctly with hotspots: collapsed 1`] = `
84 <div
85   className="hotspot-category HIGH"
86 >
87   <a
88     className="hotspot-category-header display-flex-space-between display-flex-center"
89     href="#"
90     onClick={[Function]}
91   >
92     <strong
93       className="flex-1"
94     >
95       Class Injection
96     </strong>
97     <span>
98       <span
99         className="counter-badge"
100       >
101         2
102       </span>
103       <ChevronDownIcon
104         className="big-spacer-left"
105       />
106     </span>
107   </a>
108 </div>
109 `;
110
111 exports[`should render correctly with hotspots: contains selected 1`] = `
112 <div
113   className="hotspot-category HIGH"
114 >
115   <a
116     className="hotspot-category-header display-flex-space-between display-flex-center contains-selected-hotspot"
117     href="#"
118     onClick={[Function]}
119   >
120     <strong
121       className="flex-1"
122     >
123       Class Injection
124     </strong>
125     <span>
126       <span
127         className="counter-badge"
128       >
129         2
130       </span>
131       <ChevronUpIcon
132         className="big-spacer-left"
133       />
134     </span>
135   </a>
136   <ul>
137     <li
138       key="h1"
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": "h1",
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={true}
160       />
161     </li>
162     <li
163       key="h2"
164     >
165       <HotspotListItem
166         hotspot={
167           Object {
168             "author": "Developer 1",
169             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
170             "creationDate": "2013-05-13T17:55:39+0200",
171             "key": "h2",
172             "line": 81,
173             "message": "'3' is a magic number.",
174             "project": "com.github.kevinsawicki:http-request",
175             "resolution": undefined,
176             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
177             "securityCategory": "command-injection",
178             "status": "TO_REVIEW",
179             "updateDate": "2013-05-13T17:55:39+0200",
180             "vulnerabilityProbability": "HIGH",
181           }
182         }
183         onClick={[MockFunction]}
184         selected={false}
185       />
186     </li>
187   </ul>
188 </div>
189 `;
190
191 exports[`should render correctly: empty 1`] = `""`;