add more tests
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user