Skip to content

Commit 8c6c53b

Browse files
committed
fix: remove unrelated password form tests from this branch
1 parent fca83ad commit 8c6c53b

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

internal/iostreams/forms_test.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -486,24 +486,6 @@ func TestFormsAccessible(t *testing.T) {
486486
assert.Contains(t, out.String(), "Name your app (default: cool-app-123):")
487487
})
488488

489-
t.Run("password form appends colon in accessible mode", func(t *testing.T) {
490-
var input string
491-
f := buildPasswordForm(io, "Enter token", PasswordPromptConfig{}, &input)
492-
f.Update(f.Init())
493-
494-
view := ansi.Strip(f.View())
495-
assert.Contains(t, view, "Enter token:")
496-
})
497-
498-
t.Run("password form preserves existing colon in accessible mode", func(t *testing.T) {
499-
var input string
500-
f := buildPasswordForm(io, "Enter token:", PasswordPromptConfig{}, &input)
501-
f.Update(f.Init())
502-
503-
view := ansi.Strip(f.View())
504-
assert.Contains(t, view, "Enter token:")
505-
assert.NotContains(t, view, "Enter token::")
506-
})
507489
}
508490

509491
func TestFormsNoColor(t *testing.T) {

0 commit comments

Comments
 (0)