chore(auth): finalize test of new structure
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 45s

This commit is contained in:
2024-09-26 22:43:14 +02:00
parent bd721a1e48
commit 79418b0b23
6 changed files with 111 additions and 79 deletions

View File

@@ -29,7 +29,7 @@ func TestGetUser(t *testing.T) {
db := setupDb(t)
defer db.Close()
underTest := AuthSqlite{db: db}
underTest := DbAuthSqlite{db: db}
_, err := underTest.GetUser("someNonExistentEmail")
if err != UserNotFound {
@@ -42,7 +42,7 @@ func TestGetUser(t *testing.T) {
db := setupDb(t)
defer db.Close()
underTest := AuthSqlite{db: db}
underTest := DbAuthSqlite{db: db}
verifiedAt := time.Date(2020, 1, 5, 13, 0, 0, 0, time.UTC)
createAt := time.Date(2020, 1, 5, 12, 0, 0, 0, time.UTC)