Add CoordinateEditHelper Unit Tests (#4796)

This commit is contained in:
Madhur Gupta 2022-02-08 21:01:01 +05:30 committed by GitHub
parent ebcbc6add3
commit 90b8d8c62e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 188 additions and 11 deletions

View file

@ -142,17 +142,7 @@ public class CoordinateEditHelper {
return wikiText + editedLocation;
}
if (!wikiText.contains("filedesc") && !wikiText.contains("Location")) {
return "== {{int:filedesc}} ==" + editedLocation + wikiText;
}
if (!wikiText.contains("filedesc") && wikiText.contains("Location")) {
return "== {{int:filedesc}} ==" + editedLocation + wikiText;
}
return null;
return "== {{int:filedesc}} ==" + editedLocation + wikiText;
}
/**