27 lines
593 B
Go
27 lines
593 B
Go
package repository_test
|
|
|
|
import (
|
|
"database/sql"
|
|
"testing"
|
|
"time"
|
|
|
|
"gitea.badhouseplants.net/softplayer/softplayer-backend/internal/repository"
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
func TestProjectsRepository_Success(t *testing.T) {
|
|
createdBy := uuid.NewString()
|
|
_ = &repository.ProjectData{
|
|
UUID: uuid.NewString(),
|
|
Name: "test-1",
|
|
Slug: "test_1",
|
|
Description: "Test Project Number 1",
|
|
CreatedBy: createdBy,
|
|
CreatedAt: time.Now(),
|
|
ArchivedAt: sql.NullTime{Time: time.Now()},
|
|
Blocked: false,
|
|
UpdatedAt: time.Now(),
|
|
UpdatedBy: createdBy,
|
|
}
|
|
}
|