We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37761c9 commit 3b4b244Copy full SHA for 3b4b244
command/alias_test.go
@@ -35,15 +35,22 @@ hosts:
35
36
buf := bytes.NewBufferString("")
37
defer config.StubWriteConfig(buf)()
38
- output, err := RunCommand("alias set co pr checkout -Rcool/repo")
+ output, err := RunCommand("alias set co pr checkout")
39
40
if err != nil {
41
t.Fatalf("unexpected error: %s", err)
42
}
43
44
- test.ExpectLines(t, output.String(), "TODO")
+ test.ExpectLines(t, output.String(), "Added alias")
45
46
- // TODO
+ expected := `aliases:
47
+ co: pr checkout
48
+hosts:
49
+ github.com:
50
+ user: OWNER
51
+ oauth_token: token123
52
+`
53
+ eq(t, buf.String(), expected)
54
55
56
func TestAliasSet_existing_alias(t *testing.T) {
0 commit comments