test: improve test case to highlight host name override

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-07-01 11:21:24 +01:00
parent 58ed691a6c
commit dc51226ce2
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -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,
},
{