From db741a0284d5eba41b35a24daf1d809c5cd0e541 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Wed, 27 May 2020 16:40:18 -0500 Subject: [PATCH] oops --- command/alias_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/command/alias_test.go b/command/alias_test.go index 62af996ca..1b0fc35ff 100644 --- a/command/alias_test.go +++ b/command/alias_test.go @@ -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 {