some refactor

This commit is contained in:
Pavel 2024-01-11 15:11:18 +03:00
parent 4c43a0d87b
commit 5015387857

@ -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)