Add test for entity/location.go

This commit is contained in:
Theresa Gresch 2019-12-17 18:27:08 +01:00
parent 8cb5041f96
commit 156a13358e

View File

@ -0,0 +1,13 @@
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)
}