mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-06-17 17:00:14 +00:00
chore: fix typos in test descriptions
This commit is contained in:
@@ -210,7 +210,7 @@ func TestOIDCController(t *testing.T) {
|
||||
|
||||
// --- authorize-complete ---
|
||||
{
|
||||
description: "Shoud fail if oidc is disabled",
|
||||
description: "Should fail if oidc is disabled",
|
||||
oidcDisabled: true,
|
||||
run: func(t *testing.T, router *gin.Engine, recorder *httptest.ResponseRecorder) {
|
||||
body, err := json.Marshal(AuthorizeCompleteRequest{Ticket: "some-ticket"})
|
||||
|
||||
@@ -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{},
|
||||
run: func(t *testing.T, router *gin.Engine, recorder *httptest.ResponseRecorder) {
|
||||
req := httptest.NewRequest("POST", "/api/user/totp", strings.NewReader(`{"code":`))
|
||||
|
||||
Reference in New Issue
Block a user