Backend: Add tests to internal/maps
This commit is contained in:
parent
b54c06dea1
commit
bacb0f67c3
1 changed files with 8 additions and 0 deletions
|
@ -237,6 +237,14 @@ func TestLocation_place(t *testing.T) {
|
|||
})
|
||||
}
|
||||
|
||||
func TestLocation_S2Token(t *testing.T) {
|
||||
t.Run("123", func(t *testing.T) {
|
||||
l := NewLocation("123", "Indian ocean", "", "", "Nürnberg", "Bayern", "de", "", []string{})
|
||||
|
||||
assert.Equal(t, "123", l.S2Token())
|
||||
})
|
||||
}
|
||||
|
||||
func TestLocation_Name(t *testing.T) {
|
||||
t.Run("Christkindlesmarkt", func(t *testing.T) {
|
||||
l := NewLocation("", "Christkindlesmarkt", "", "", "Nürnberg", "Bayern", "de", "", []string{})
|
||||
|
|
Loading…
Reference in a new issue