diff --git a/internal/handlers/profile_test.go b/internal/handlers/profile_test.go index 18692c3..c68a35e 100644 --- a/internal/handlers/profile_test.go +++ b/internal/handlers/profile_test.go @@ -88,6 +88,8 @@ func TestHandleProfile_OwnProfile_OK(t *testing.T) { h.HandleProfile().ServeHTTP(w, req) assert.Equal(t, http.StatusOK, w.Code) + assert.Contains(t, w.Body.String(), "Account Information") + assert.NotContains(t, w.Body.String(), "Account Type") } func TestHandleProfile_OtherProfile_Forbidden(t *testing.T) { diff --git a/templates/profile.html b/templates/profile.html index 3210da2..2857071 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -41,10 +41,6 @@
Username
{{.User.Username}}
-
-
Account Type
-
Standard User
-