Skip to content

Commit

Permalink
spelling: nonexistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Nov 22, 2020
1 parent 76bd377 commit c8b9486
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions context/remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`))
}

Expand Down
2 changes: 1 addition & 1 deletion git/ssh_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion internal/config/config_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit c8b9486

Please sign in to comment.