diff --git a/handler/auth.go b/handler/auth.go index 0c3f79c..d48a589 100644 --- a/handler/auth.go +++ b/handler/auth.go @@ -76,7 +76,7 @@ func (handler HandlerAuthImpl) handleSignIn() http.HandlerFunc { http.Error(w, "Invalid email or password", http.StatusUnauthorized) } else { utils.LogError("Error signing in", err) - http.Error(w, "An error occurred", http.StatusInternalServerError) + http.Error(w, "InternalServerErr", http.StatusInternalServerError) } return } diff --git a/handler/auth_test.go b/handler/auth_test.go new file mode 100644 index 0000000..921902a --- /dev/null +++ b/handler/auth_test.go @@ -0,0 +1,11 @@ +package handler + +import ( + "testing" +) + +func TestHandleSignIn(t *testing.T) { + t.Parallel() + t.Run("should signIn and return session cookie", func(t *testing.T) { + }) +}