mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-25 03:06:10 +01:00
Lint tests (sorry, I'm a bit tired)
This commit is contained in:
parent
2c94e6d56f
commit
5731fbb4a4
|
@ -284,7 +284,7 @@ func TestGetOpenStreetMapLink(t *testing.T) {
|
|||
"Αθήνα": "%ce%91%ce%b8%ce%ae%ce%bd%ce%b1",
|
||||
// " Αθήνα": "%20%20%ce%91%ce%b8%ce%ae%ce%bd%ce%b1",
|
||||
"Barbarossabrunnen, Düsseldorf": "Barbarossabrunnen%2c%20D%c3%bcsseldorf",
|
||||
"39.91025,116.40753": "39.91025%2C116.40753",
|
||||
"39.91025,116.40753": "39.91025%2C116.40753",
|
||||
// "நியூ யோர்க்": "%e0%ae%a8%e0%ae%bf%e0%ae%af%e0%af%82%20%e0%ae%af%e0%af%8b%e0%ae%b0%e0%af%8d%e0%ae%95%e0%af%8d",
|
||||
}
|
||||
|
||||
|
@ -304,7 +304,7 @@ func TestGetOpenStreetMapLink(t *testing.T) {
|
|||
resp = session.MakeRequest(t, req, http.StatusOK)
|
||||
assert.Contains(t,
|
||||
resp.Body.String(),
|
||||
"<a href=\"" + "https://www.openstreetmap.org/search?query=" + encodedLocation + "\" rel=\"nofollow noreferrer\">",
|
||||
"<a href=\""+"https://www.openstreetmap.org/search?query="+encodedLocation+"\" rel=\"nofollow noreferrer\">",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue