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", }, }