diff --git a/functions/gateway/templates/pages/profile_templ_test.go b/functions/gateway/templates/pages/profile_templ_test.go index f54ac43c..4f8f6928 100644 --- a/functions/gateway/templates/pages/profile_templ_test.go +++ b/functions/gateway/templates/pages/profile_templ_test.go @@ -47,22 +47,7 @@ func TestProfilePage(t *testing.T) { subdomain := "brians-pub" // Call the ProfilePage function - userAbout := "I'm a software engineer passionate about technology." - profilePage := ProfilePage(mockUserInfo, mockRoleClaims, interests, subdomain, userAbout) - - // Create a layout template - layoutTemplate := Layout(helpers.SitePages["profile"], mockUserInfo, profilePage, types.Event{}) - - // Check if the rendered content contains expected information - renderedContent := buf.String() - expectedContent := []string{ - mockUserInfo.Email, - mockUserInfo.Name, - mockUserInfo.Sub, - mockUserInfo.Locale, - "Yes", // mockUserInfo.EmailVerified yields a value "Yes" or "No" - userAbout, // Verify that the about section is rendered - } + profilePage := ProfilePage(mockUserInfo, mockRoleClaims, interests, subdomain, "Test about me text") // Create a layout template layoutTemplate := Layout(helpers.SitePages["profile"], mockUserInfo, profilePage, types.Event{}) @@ -84,6 +69,7 @@ func TestProfilePage(t *testing.T) { mockUserInfo.Sub, mockUserInfo.Locale, "Yes", // mockUserInfo.EmailVerified yields a value "Yes" or "No" + "Test about me text", } for _, element := range expectedContent {