diff --git a/tests/repository_test/repository_test.go b/tests/repository_test/repository_test.go index d12754c..6b69033 100644 --- a/tests/repository_test/repository_test.go +++ b/tests/repository_test/repository_test.go @@ -17,6 +17,8 @@ import ( "github.com/stretchr/testify/assert" ) +// todo add another tests + const mongoURI = "mongodb://test:test@127.0.0.1:27020/?authMechanism=SCRAM-SHA-256&authSource=admin&directConnection=true" func TestFindByEmail(t *testing.T) { @@ -78,7 +80,7 @@ func TestStoreRecoveryRecord(t *testing.T) { email := faker.Email() key := "test_recovery_key" - id, err := userRepo.StoreRecoveryRecord(ctx, userID, email, key, "def.url") + id, err := userRepo.StoreRecoveryRecord(ctx, models.StoreRecDeps{UserID: userID, Email: email, Key: key, Url: "def.url"}) assert.NoError(t, err) fmt.Println(id)