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

12 lines
260 B
Go
Raw Normal View History

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