chore: fix typos in test descriptions

This commit is contained in:
Stavros
2026-06-17 18:56:34 +03:00
parent 2cec88799e
commit c380123602
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ func TestOIDCController(t *testing.T) {
// --- authorize-complete --- // --- authorize-complete ---
{ {
description: "Shoud fail if oidc is disabled", description: "Should fail if oidc is disabled",
oidcDisabled: true, oidcDisabled: true,
run: func(t *testing.T, router *gin.Engine, recorder *httptest.ResponseRecorder) { run: func(t *testing.T, router *gin.Engine, recorder *httptest.ResponseRecorder) {
body, err := json.Marshal(AuthorizeCompleteRequest{Ticket: "some-ticket"}) body, err := json.Marshal(AuthorizeCompleteRequest{Ticket: "some-ticket"})
+1 -1
View File
@@ -290,7 +290,7 @@ func TestUserController(t *testing.T) {
}, },
}, },
{ {
description: "TOTP should gracefuly reject invalid json", description: "TOTP should gracefully reject invalid json",
middlewares: []gin.HandlerFunc{}, middlewares: []gin.HandlerFunc{},
run: func(t *testing.T, router *gin.Engine, recorder *httptest.ResponseRecorder) { run: func(t *testing.T, router *gin.Engine, recorder *httptest.ResponseRecorder) {
req := httptest.NewRequest("POST", "/api/user/totp", strings.NewReader(`{"code":`)) req := httptest.NewRequest("POST", "/api/user/totp", strings.NewReader(`{"code":`))