spelling: nonexistent
This commit is contained in:
parent
76bd377253
commit
c8b9486fd3
3 changed files with 4 additions and 4 deletions
|
|
@ -28,11 +28,11 @@ func Test_Remotes_FindByName(t *testing.T) {
|
|||
eq(t, err, nil)
|
||||
eq(t, r.Name, "upstream")
|
||||
|
||||
r, err = list.FindByName("nonexist", "*")
|
||||
r, err = list.FindByName("nonexistent", "*")
|
||||
eq(t, err, nil)
|
||||
eq(t, r.Name, "mona")
|
||||
|
||||
_, err = list.FindByName("nonexist")
|
||||
_, err = list.FindByName("nonexistent")
|
||||
eq(t, err, errors.New(`no GitHub remotes found`))
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ func Test_sshParse(t *testing.T) {
|
|||
`))
|
||||
eq(t, m["foo"], "example.com")
|
||||
eq(t, m["bar"], "%bar.net%")
|
||||
eq(t, m["nonexist"], "")
|
||||
eq(t, m["nonexistent"], "")
|
||||
}
|
||||
|
||||
func Test_Translator(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ example.com:
|
|||
val, err = config.Get("github.com", "git_protocol")
|
||||
eq(t, err, nil)
|
||||
eq(t, val, "ssh")
|
||||
val, err = config.Get("nonexist.io", "git_protocol")
|
||||
val, err = config.Get("nonexistent.io", "git_protocol")
|
||||
eq(t, err, nil)
|
||||
eq(t, val, "ssh")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue