]> source.dussan.org Git - sonarqube.git/blob
9780158f073dbbe7ec23eeaef2bb11732a2f28bd
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for bugs 1`] = `
4 <Fragment>
5   <ForwardRef(Link)
6     aria-label="overview.see_list_of_x_y_issues.1.0.metric.bugs.name"
7     className="overview-measures-value text-light"
8     to={
9       {
10         "hash": "",
11         "pathname": "/project/issues",
12         "search": "?pullRequest=1001&resolved=false&types=BUG&inNewCodePeriod=false&id=my-project",
13       }
14     }
15   >
16     1
17   </ForwardRef(Link)>
18   <BugIcon
19     className="big-spacer-left little-spacer-right"
20   />
21   metric.bugs.name
22 </Fragment>
23 `;
24
25 exports[`should render correctly for bugs 2`] = `
26 <Fragment>
27   <ForwardRef(Link)
28     aria-label="overview.see_list_of_x_y_issues.1.0.metric.new_bugs.name"
29     className="overview-measures-value text-light"
30     to={
31       {
32         "hash": "",
33         "pathname": "/project/issues",
34         "search": "?pullRequest=1001&resolved=false&types=BUG&inNewCodePeriod=true&id=my-project",
35       }
36     }
37   >
38     1
39   </ForwardRef(Link)>
40   <BugIcon
41     className="big-spacer-left little-spacer-right"
42   />
43   metric.new_bugs.name
44 </Fragment>
45 `;
46
47 exports[`should render correctly for code smells 1`] = `
48 <Fragment>
49   <ForwardRef(Link)
50     aria-label="overview.see_list_of_x_y_issues.1.0.metric.code_smells.name"
51     className="overview-measures-value text-light"
52     to={
53       {
54         "hash": "",
55         "pathname": "/project/issues",
56         "search": "?pullRequest=1001&resolved=false&types=CODE_SMELL&inNewCodePeriod=false&id=my-project",
57       }
58     }
59   >
60     1
61   </ForwardRef(Link)>
62   <CodeSmellIcon
63     className="big-spacer-left little-spacer-right"
64   />
65   metric.code_smells.name
66 </Fragment>
67 `;
68
69 exports[`should render correctly for code smells 2`] = `
70 <Fragment>
71   <ForwardRef(Link)
72     aria-label="overview.see_list_of_x_y_issues.1.0.metric.new_code_smells.name"
73     className="overview-measures-value text-light"
74     to={
75       {
76         "hash": "",
77         "pathname": "/project/issues",
78         "search": "?pullRequest=1001&resolved=false&types=CODE_SMELL&inNewCodePeriod=true&id=my-project",
79       }
80     }
81   >
82     1
83   </ForwardRef(Link)>
84   <CodeSmellIcon
85     className="big-spacer-left little-spacer-right"
86   />
87   metric.new_code_smells.name
88 </Fragment>
89 `;
90
91 exports[`should render correctly for hotspots 1`] = `
92 <Fragment>
93   <ForwardRef(Link)
94     aria-label="overview.see_list_of_x_y_issues.1.0.metric.security_hotspots.name"
95     className="overview-measures-value text-light"
96     to={
97       {
98         "hash": "",
99         "pathname": "/security_hotspots",
100         "search": "?id=my-project&pullRequest=1001&inNewCodePeriod=false",
101       }
102     }
103   >
104     1
105   </ForwardRef(Link)>
106   <SecurityHotspotIcon
107     className="big-spacer-left little-spacer-right"
108   />
109   metric.security_hotspots.name
110   <HelpTooltip
111     className="little-spacer-left"
112     overlay="tooltip text"
113   />
114 </Fragment>
115 `;
116
117 exports[`should render correctly for hotspots 2`] = `
118 <Fragment>
119   <ForwardRef(Link)
120     aria-label="overview.see_list_of_x_y_issues.1.0.metric.new_security_hotspots.name"
121     className="overview-measures-value text-light"
122     to={
123       {
124         "hash": "",
125         "pathname": "/security_hotspots",
126         "search": "?id=my-project&pullRequest=1001&inNewCodePeriod=true",
127       }
128     }
129   >
130     1
131   </ForwardRef(Link)>
132   <SecurityHotspotIcon
133     className="big-spacer-left little-spacer-right"
134   />
135   metric.new_security_hotspots.name
136   <HelpTooltip
137     className="little-spacer-left"
138     overlay="tooltip text"
139   />
140 </Fragment>
141 `;
142
143 exports[`should render correctly for vulnerabilities 1`] = `
144 <Fragment>
145   <ForwardRef(Link)
146     aria-label="overview.see_list_of_x_y_issues.1.0.metric.vulnerabilities.name"
147     className="overview-measures-value text-light"
148     to={
149       {
150         "hash": "",
151         "pathname": "/project/issues",
152         "search": "?pullRequest=1001&resolved=false&types=VULNERABILITY&inNewCodePeriod=false&id=my-project",
153       }
154     }
155   >
156     1
157   </ForwardRef(Link)>
158   <VulnerabilityIcon
159     className="big-spacer-left little-spacer-right"
160   />
161   metric.vulnerabilities.name
162 </Fragment>
163 `;
164
165 exports[`should render correctly for vulnerabilities 2`] = `
166 <Fragment>
167   <ForwardRef(Link)
168     aria-label="overview.see_list_of_x_y_issues.1.0.metric.new_vulnerabilities.name"
169     className="overview-measures-value text-light"
170     to={
171       {
172         "hash": "",
173         "pathname": "/project/issues",
174         "search": "?pullRequest=1001&resolved=false&types=VULNERABILITY&inNewCodePeriod=true&id=my-project",
175       }
176     }
177   >
178     1
179   </ForwardRef(Link)>
180   <VulnerabilityIcon
181     className="big-spacer-left little-spacer-right"
182   />
183   metric.new_vulnerabilities.name
184 </Fragment>
185 `;
186
187 exports[`should render correctly if no values are present 1`] = `
188 <Fragment>
189   <span
190     aria-label="no_data"
191     className="overview-measures-empty-value"
192   />
193   <BugIcon
194     className="big-spacer-left little-spacer-right"
195   />
196   metric.bugs.name
197 </Fragment>
198 `;