0 args tst
This commit is contained in:
parent
f84707b5b1
commit
5fde67110e
1 changed files with 8 additions and 1 deletions
|
|
@ -152,8 +152,15 @@ aliases:
|
|||
{"gh pr status", []string{"pr", "status"}, ""},
|
||||
{"gh dne", []string{"dne"}, ""},
|
||||
{"gh", []string{}, ""},
|
||||
{"", []string{}, ""},
|
||||
} {
|
||||
out, err := ExpandAlias(strings.Split(c.Args, " "))
|
||||
args := []string{}
|
||||
if c.Args != "" {
|
||||
args = strings.Split(c.Args, " ")
|
||||
}
|
||||
|
||||
out, err := ExpandAlias(args)
|
||||
|
||||
if err == nil && c.Err != "" {
|
||||
t.Errorf("expected error %s for %s", c.Err, c.Args)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue