photoprism/internal/maps/country_test.go
Michael Mayer dcc610d7a9 Use AlbumType to distinguish between manual collections and moments #154
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-29 12:21:17 +02:00

20 lines
329 B
Go

package maps
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestCountryName(t *testing.T) {
t.Run("gb", func(t *testing.T) {
result := CountryName("gb")
assert.Equal(t, "United Kingdom", result)
})
t.Run("us", func(t *testing.T) {
result := CountryName("us")
assert.Equal(t, "USA", result)
})
}