test: improve test case to highlight host name override
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
58ed691a6c
commit
dc51226ce2
1 changed files with 2 additions and 2 deletions
|
|
@ -263,12 +263,12 @@ func TestNewCmdEdit(t *testing.T) {
|
|||
},
|
||||
{
|
||||
name: "argument is a URL",
|
||||
input: "https://github.com/cli/cli/issues/23",
|
||||
input: "https://example.com/cli/cli/issues/23",
|
||||
output: EditOptions{
|
||||
IssueNumbers: []int{23},
|
||||
Interactive: true,
|
||||
},
|
||||
expectedBaseRepo: ghrepo.New("cli", "cli"),
|
||||
expectedBaseRepo: ghrepo.NewWithHost("cli", "cli", "example.com"),
|
||||
wantsErr: false,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue