photoprism/internal/entity/location_test.go

14 lines
256 B
Go
Raw Normal View History

2019-12-17 18:27:08 +01:00
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)
}