fix: add missing context to gist create command test case
This commit is contained in:
parent
64f46223ba
commit
3e54a0ecd7
1 changed files with 7 additions and 0 deletions
|
|
@ -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(`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue