chore(auth): finalize test of new structure

This commit is contained in:
2024-09-26 22:43:14 +02:00
committed by Tim Wundenberg
parent 7001a1c2cc
commit 6279a28061
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)