Add test for entity/location.go
This commit is contained in:
parent
8cb5041f96
commit
156a13358e
13
internal/entity/location_test.go
Normal file
13
internal/entity/location_test.go
Normal 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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user