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