add more tests

This commit is contained in:
2024-07-29 13:52:10 +02:00
parent 99c2eec759
commit 6631288843
2 changed files with 62 additions and 1 deletions

View File

@ -79,7 +79,10 @@ func (m *testDBRepo) UpdateUser(u models.User) error {
// Authenticate authenticates a user
func (m *testDBRepo) Authenticate(email, testPassword string) (int, string, error) {
return 1, "", nil
if email == "a@b.c" {
return 1, "", nil
}
return 0, "", errors.New("deliberate errors")
}
// AllReservations returns a slice of all reservations