photoprism/internal/entity/location_test.go
Michael Mayer 8e15c1d6fd Code clean-up (make fmt)
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2019-12-21 17:24:29 +01:00

16 lines
238 B
Go

package entity
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestLocation_Label(t *testing.T) {
l := NewLocation(1, 1)
l.LocCategory = "restaurant"
result := l.Category()
assert.Equal(t, "restaurant", result)
}