Skip to content

Commit 3e54a0e

Browse files
committed
fix: add missing context to gist create command test case
1 parent 64f4622 commit 3e54a0e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

command/gist_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@ import (
55
"encoding/json"
66
"io/ioutil"
77
"testing"
8+
9+
"github.com/cli/cli/context"
810
)
911

1012
func TestGistCreate(t *testing.T) {
13+
ctx := context.NewBlank()
14+
initContext = func() context.Context {
15+
return ctx
16+
}
17+
1118
http := initFakeHTTP()
1219

1320
http.StubResponse(200, bytes.NewBufferString(`

0 commit comments

Comments
 (0)