✅ Refactored client use case test
This commit is contained in:
parent
7d0635c87a
commit
0139711f23
|
@ -6,7 +6,7 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
repository "source.toby3d.me/toby3d/auth/internal/client/repository/memory"
|
||||
"source.toby3d.me/toby3d/auth/internal/client"
|
||||
"source.toby3d.me/toby3d/auth/internal/client/usecase"
|
||||
"source.toby3d.me/toby3d/auth/internal/domain"
|
||||
)
|
||||
|
@ -15,11 +15,7 @@ func TestDiscovery(t *testing.T) {
|
|||
t.Parallel()
|
||||
|
||||
testClient := domain.TestClient(t)
|
||||
clients := repository.NewMemoryClientRepository()
|
||||
|
||||
if err := clients.Create(context.Background(), *testClient); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
clients := client.NewStubClientRepository(testClient, nil)
|
||||
|
||||
for _, tc := range []struct {
|
||||
expError error
|
||||
|
|
Loading…
Reference in New Issue
Block a user