spelling: nonexistent

This commit is contained in:
Josh Soref 2020-11-21 21:18:51 -05:00
parent 76bd377253
commit c8b9486fd3
3 changed files with 4 additions and 4 deletions

View file

@ -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`))
}

View file

@ -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) {

View file

@ -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")
}