Update tests
This commit is contained in:
parent
cdc7cae29c
commit
eb44ec2d86
3 changed files with 5 additions and 5 deletions
|
|
@ -217,7 +217,7 @@ func cloneRun(opts *CloneOptions) error {
|
|||
connectedToTerminal := opts.IO.IsStdoutTTY()
|
||||
if connectedToTerminal {
|
||||
cs := opts.IO.ColorScheme()
|
||||
fmt.Fprintf(opts.IO.Out, "%s Repository %s set as the default repository. To learn more about the default repository, run: gh repo set-default --help\n", cs.WarningIcon(), cs.Bold(ghrepo.FullName(canonicalRepo.Parent)))
|
||||
fmt.Fprintf(opts.IO.ErrOut, "%s Repository %s set as the default repository. To learn more about the default repository, run: gh repo set-default --help\n", cs.WarningIcon(), cs.Bold(ghrepo.FullName(canonicalRepo.Parent)))
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
|
|
|||
|
|
@ -378,8 +378,8 @@ func forkRun(opts *ForkOptions) error {
|
|||
}
|
||||
|
||||
if connectedToTerminal {
|
||||
fmt.Fprintf(opts.IO.Out, "%s Cloned fork\n", cs.SuccessIcon())
|
||||
fmt.Fprintf(opts.IO.Out, "%s Repository %s set as the default repository. To learn more about the default repository, run: gh repo set-default --help\n", cs.WarningIcon(), cs.Bold(ghrepo.FullName(repoToFork)))
|
||||
fmt.Fprintf(stderr, "%s Cloned fork\n", cs.SuccessIcon())
|
||||
fmt.Fprintf(stderr, "%s Repository %s set as the default repository. To learn more about the default repository, run: gh repo set-default --help\n", cs.WarningIcon(), cs.Bold(ghrepo.FullName(repoToFork)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ func TestDefaultRun(t *testing.T) {
|
|||
Repo: repo1,
|
||||
},
|
||||
},
|
||||
wantStderr: "no default repository has been set; use `gh repo set-default` to select one\n",
|
||||
wantStderr: "X No default remote repository has been set. To learn more about the default repository, run: gh repo set-default --help\n",
|
||||
},
|
||||
{
|
||||
name: "view mode no current default",
|
||||
|
|
@ -188,7 +188,7 @@ func TestDefaultRun(t *testing.T) {
|
|||
Repo: repo1,
|
||||
},
|
||||
},
|
||||
wantStderr: "no default repository has been set; use `gh repo set-default` to select one\n",
|
||||
wantStderr: "X No default remote repository has been set. To learn more about the default repository, run: gh repo set-default --help\n",
|
||||
},
|
||||
{
|
||||
name: "view mode with base resolved current default",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue