fix: add missing context to gist create command test case

This commit is contained in:
wingkwong 2020-02-25 15:36:37 +08:00
parent 64f46223ba
commit 3e54a0ecd7

View file

@ -5,9 +5,16 @@ import (
"encoding/json"
"io/ioutil"
"testing"
"github.com/cli/cli/context"
)
func TestGistCreate(t *testing.T) {
ctx := context.NewBlank()
initContext = func() context.Context {
return ctx
}
http := initFakeHTTP()
http.StubResponse(200, bytes.NewBufferString(`