From c0f6eb0598bad1463f8dca4b574c69342d653aa0 Mon Sep 17 00:00:00 2001 From: Mateus Marquezini Date: Mon, 13 Jan 2025 11:39:48 -0300 Subject: [PATCH] #10042: Attempt to add a new test scenario for handling error messages when TTY is unavailable --- pkg/cmd/gist/edit/edit_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/gist/edit/edit_test.go b/pkg/cmd/gist/edit/edit_test.go index 0bf7cb51a..be610b6b4 100644 --- a/pkg/cmd/gist/edit/edit_test.go +++ b/pkg/cmd/gist/edit/edit_test.go @@ -520,8 +520,11 @@ func Test_editRun(t *testing.T) { }, }, { - name: "no arguments notty", - nontty: true, + name: "no arguments notty", + nontty: true, + opts: &EditOptions{ + Selector: "", + }, wantErr: "gist ID or URL required when not running interactively", }, }