8e15c1d6fd
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
14 lines
238 B
Go
14 lines
238 B
Go
package entity
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestEvent_TableName(t *testing.T) {
|
|
event := &Event{EventSlug: "christmas-2000"}
|
|
tableName := event.TableName()
|
|
|
|
assert.Equal(t, "events", tableName)
|
|
}
|