This commit is contained in:
vilmibm 2020-05-27 16:40:18 -05:00
parent ad7c484243
commit db741a0284

View file

@ -12,6 +12,9 @@ import (
func TestAliasSet_gh_command(t *testing.T) {
initBlankContext("", "OWNER/REPO", "trunk")
buf := bytes.NewBufferString("")
defer config.StubWriteConfig(buf)()
_, err := RunCommand("alias set pr pr status")
if err == nil {
t.Fatal("expected error")
@ -31,6 +34,8 @@ aliases:
`
initBlankContext(cfg, "OWNER/REPO", "trunk")
buf := bytes.NewBufferString("")
defer config.StubWriteConfig(buf)()
output, err := RunCommand("alias set co pr checkout -Rcool/repo")
if err != nil {