]> source.dussan.org Git - sonarqube.git/blob
7a16e77ae4e9c56bb60b4f089ba2184547d7d273
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for bugs 1`] = `
4 <Fragment>
5   <Link
6     className="overview-measures-value text-light"
7     onlyActiveOnIndex={false}
8     style={Object {}}
9     to={
10       Object {
11         "pathname": "/project/issues",
12         "query": Object {
13           "id": "my-project",
14           "pullRequest": "1001",
15           "resolved": "false",
16           "sinceLeakPeriod": "false",
17           "types": "BUG",
18         },
19       }
20     }
21   >
22     1
23   </Link>
24   <BugIcon
25     className="big-spacer-left little-spacer-right"
26   />
27   metric.bugs.name
28 </Fragment>
29 `;
30
31 exports[`should render correctly for bugs 2`] = `
32 <Fragment>
33   <Link
34     className="overview-measures-value text-light"
35     onlyActiveOnIndex={false}
36     style={Object {}}
37     to={
38       Object {
39         "pathname": "/project/issues",
40         "query": Object {
41           "id": "my-project",
42           "pullRequest": "1001",
43           "resolved": "false",
44           "sinceLeakPeriod": "true",
45           "types": "BUG",
46         },
47       }
48     }
49   >
50     1
51   </Link>
52   <BugIcon
53     className="big-spacer-left little-spacer-right"
54   />
55   metric.new_bugs.name
56 </Fragment>
57 `;
58
59 exports[`should render correctly for code smells 1`] = `
60 <Fragment>
61   <Link
62     className="overview-measures-value text-light"
63     onlyActiveOnIndex={false}
64     style={Object {}}
65     to={
66       Object {
67         "pathname": "/project/issues",
68         "query": Object {
69           "id": "my-project",
70           "pullRequest": "1001",
71           "resolved": "false",
72           "sinceLeakPeriod": "false",
73           "types": "CODE_SMELL",
74         },
75       }
76     }
77   >
78     1
79   </Link>
80   <CodeSmellIcon
81     className="big-spacer-left little-spacer-right"
82   />
83   metric.code_smells.name
84 </Fragment>
85 `;
86
87 exports[`should render correctly for code smells 2`] = `
88 <Fragment>
89   <Link
90     className="overview-measures-value text-light"
91     onlyActiveOnIndex={false}
92     style={Object {}}
93     to={
94       Object {
95         "pathname": "/project/issues",
96         "query": Object {
97           "id": "my-project",
98           "pullRequest": "1001",
99           "resolved": "false",
100           "sinceLeakPeriod": "true",
101           "types": "CODE_SMELL",
102         },
103       }
104     }
105   >
106     1
107   </Link>
108   <CodeSmellIcon
109     className="big-spacer-left little-spacer-right"
110   />
111   metric.new_code_smells.name
112 </Fragment>
113 `;
114
115 exports[`should render correctly for hotspots 1`] = `
116 <Fragment>
117   <Link
118     className="overview-measures-value text-light"
119     onlyActiveOnIndex={false}
120     style={Object {}}
121     to={
122       Object {
123         "pathname": "/security_hotspots",
124         "query": Object {
125           "assignedToMe": undefined,
126           "branch": undefined,
127           "category": undefined,
128           "hotspots": undefined,
129           "id": "my-project",
130           "pullRequest": "1001",
131           "sinceLeakPeriod": "false",
132         },
133       }
134     }
135   >
136     1
137   </Link>
138   <SecurityHotspotIcon
139     className="big-spacer-left little-spacer-right"
140   />
141   metric.security_hotspots.name
142   <HelpTooltip
143     className="little-spacer-left"
144     overlay="tooltip text"
145   />
146 </Fragment>
147 `;
148
149 exports[`should render correctly for hotspots 2`] = `
150 <Fragment>
151   <Link
152     className="overview-measures-value text-light"
153     onlyActiveOnIndex={false}
154     style={Object {}}
155     to={
156       Object {
157         "pathname": "/security_hotspots",
158         "query": Object {
159           "assignedToMe": undefined,
160           "branch": undefined,
161           "category": undefined,
162           "hotspots": undefined,
163           "id": "my-project",
164           "pullRequest": "1001",
165           "sinceLeakPeriod": "true",
166         },
167       }
168     }
169   >
170     1
171   </Link>
172   <SecurityHotspotIcon
173     className="big-spacer-left little-spacer-right"
174   />
175   metric.new_security_hotspots.name
176   <HelpTooltip
177     className="little-spacer-left"
178     overlay="tooltip text"
179   />
180 </Fragment>
181 `;
182
183 exports[`should render correctly for vulnerabilities 1`] = `
184 <Fragment>
185   <Link
186     className="overview-measures-value text-light"
187     onlyActiveOnIndex={false}
188     style={Object {}}
189     to={
190       Object {
191         "pathname": "/project/issues",
192         "query": Object {
193           "id": "my-project",
194           "pullRequest": "1001",
195           "resolved": "false",
196           "sinceLeakPeriod": "false",
197           "types": "VULNERABILITY",
198         },
199       }
200     }
201   >
202     1
203   </Link>
204   <VulnerabilityIcon
205     className="big-spacer-left little-spacer-right"
206   />
207   metric.vulnerabilities.name
208 </Fragment>
209 `;
210
211 exports[`should render correctly for vulnerabilities 2`] = `
212 <Fragment>
213   <Link
214     className="overview-measures-value text-light"
215     onlyActiveOnIndex={false}
216     style={Object {}}
217     to={
218       Object {
219         "pathname": "/project/issues",
220         "query": Object {
221           "id": "my-project",
222           "pullRequest": "1001",
223           "resolved": "false",
224           "sinceLeakPeriod": "true",
225           "types": "VULNERABILITY",
226         },
227       }
228     }
229   >
230     1
231   </Link>
232   <VulnerabilityIcon
233     className="big-spacer-left little-spacer-right"
234   />
235   metric.new_vulnerabilities.name
236 </Fragment>
237 `;
238
239 exports[`should render correctly if no values are present 1`] = `
240 <Fragment>
241   <span
242     aria-label="no_data"
243     className="overview-measures-empty-value"
244   />
245   <BugIcon
246     className="big-spacer-left little-spacer-right"
247   />
248   metric.bugs.name
249 </Fragment>
250 `;