]> source.dussan.org Git - sonarqube.git/blob
ad55fcd971b80ee0c773d53bb585ba257ad47cb3
[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           "hotspots": undefined,
128           "id": "my-project",
129           "pullRequest": "1001",
130           "sinceLeakPeriod": "false",
131         },
132       }
133     }
134   >
135     1
136   </Link>
137   <SecurityHotspotIcon
138     className="big-spacer-left little-spacer-right"
139   />
140   metric.security_hotspots.name
141   <DocTooltip
142     className="little-spacer-left"
143     doc={Promise {}}
144   />
145 </Fragment>
146 `;
147
148 exports[`should render correctly for hotspots 2`] = `
149 <Fragment>
150   <Link
151     className="overview-measures-value text-light"
152     onlyActiveOnIndex={false}
153     style={Object {}}
154     to={
155       Object {
156         "pathname": "/security_hotspots",
157         "query": Object {
158           "assignedToMe": undefined,
159           "branch": undefined,
160           "hotspots": undefined,
161           "id": "my-project",
162           "pullRequest": "1001",
163           "sinceLeakPeriod": "true",
164         },
165       }
166     }
167   >
168     1
169   </Link>
170   <SecurityHotspotIcon
171     className="big-spacer-left little-spacer-right"
172   />
173   metric.new_security_hotspots.name
174   <DocTooltip
175     className="little-spacer-left"
176     doc={Promise {}}
177   />
178 </Fragment>
179 `;
180
181 exports[`should render correctly for vulnerabilities 1`] = `
182 <Fragment>
183   <Link
184     className="overview-measures-value text-light"
185     onlyActiveOnIndex={false}
186     style={Object {}}
187     to={
188       Object {
189         "pathname": "/project/issues",
190         "query": Object {
191           "id": "my-project",
192           "pullRequest": "1001",
193           "resolved": "false",
194           "sinceLeakPeriod": "false",
195           "types": "VULNERABILITY",
196         },
197       }
198     }
199   >
200     1
201   </Link>
202   <VulnerabilityIcon
203     className="big-spacer-left little-spacer-right"
204   />
205   metric.vulnerabilities.name
206 </Fragment>
207 `;
208
209 exports[`should render correctly for vulnerabilities 2`] = `
210 <Fragment>
211   <Link
212     className="overview-measures-value text-light"
213     onlyActiveOnIndex={false}
214     style={Object {}}
215     to={
216       Object {
217         "pathname": "/project/issues",
218         "query": Object {
219           "id": "my-project",
220           "pullRequest": "1001",
221           "resolved": "false",
222           "sinceLeakPeriod": "true",
223           "types": "VULNERABILITY",
224         },
225       }
226     }
227   >
228     1
229   </Link>
230   <VulnerabilityIcon
231     className="big-spacer-left little-spacer-right"
232   />
233   metric.new_vulnerabilities.name
234 </Fragment>
235 `;
236
237 exports[`should render correctly if no values are present 1`] = `
238 <Fragment>
239   <span
240     aria-label="no_data"
241     className="overview-measures-empty-value"
242   />
243   <BugIcon
244     className="big-spacer-left little-spacer-right"
245   />
246   metric.bugs.name
247 </Fragment>
248 `;