otter-space-sdk/pkg/models/post_test.go

12 lines
260 B
Go
Raw Normal View History

package models
import "testing"
func TestPost_TableName(t *testing.T) {
post := Post{}
expectedTableName := "Post"
if tableName := post.TableName(); tableName != expectedTableName {
t.Fatalf("expected %s, but got %s", expectedTableName, tableName)
}
}