photoprism/internal/entity/location_test.go
2019-12-17 18:27:08 +01:00

14 lines
256 B
Go

package entity
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestLocation_Label(t *testing.T) {
location := &Location{LocCategory: "restaurant", LocType: "bistro"}
result := location.Label()
assert.Equal(t, "restaurant", result)
}