diff options
Diffstat (limited to 'app/controllers/sparkles/controller_test.go')
| -rw-r--r-- | app/controllers/sparkles/controller_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/sparkles/controller_test.go b/app/controllers/sparkles/controller_test.go index 17bc338..99fdd69 100644 --- a/app/controllers/sparkles/controller_test.go +++ b/app/controllers/sparkles/controller_test.go @@ -15,7 +15,7 @@ import ( func TestSparkles(t *testing.T) { t.Run("GET /sparkles", func(t *testing.T) { sparkle, _ := domain.NewSparkle("@tanuki for helping me") - store := db.NewRepository() + store := db.NewRepository[*domain.Sparkle]() store.Save(sparkle) mux := http.NewServeMux() @@ -43,7 +43,7 @@ func TestSparkles(t *testing.T) { t.Run("POST /sparkles", func(t *testing.T) { t.Run("saves a new sparkle", func(t *testing.T) { - repository := db.NewRepository() + repository := db.NewRepository[*domain.Sparkle]() mux := http.NewServeMux() controller := New(repository) controller.MountTo(mux) |
