some refactor
This commit is contained in:
parent
4c43a0d87b
commit
5015387857
@ -17,6 +17,8 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"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"
|
const mongoURI = "mongodb://test:test@127.0.0.1:27020/?authMechanism=SCRAM-SHA-256&authSource=admin&directConnection=true"
|
||||||
|
|
||||||
func TestFindByEmail(t *testing.T) {
|
func TestFindByEmail(t *testing.T) {
|
||||||
@ -78,7 +80,7 @@ func TestStoreRecoveryRecord(t *testing.T) {
|
|||||||
email := faker.Email()
|
email := faker.Email()
|
||||||
key := "test_recovery_key"
|
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)
|
assert.NoError(t, err)
|
||||||
fmt.Println(id)
|
fmt.Println(id)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user