From c8b9486fd3ac6a1692965013d1685e66cb197bfe Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sat, 21 Nov 2020 21:18:51 -0500 Subject: [PATCH] spelling: nonexistent --- context/remote_test.go | 4 ++-- git/ssh_config_test.go | 2 +- internal/config/config_file_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/context/remote_test.go b/context/remote_test.go index ab3f7e2e284..1d2140c9034 100644 --- a/context/remote_test.go +++ b/context/remote_test.go @@ -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`)) } diff --git a/git/ssh_config_test.go b/git/ssh_config_test.go index 28f339aa65b..7aafc5b219b 100644 --- a/git/ssh_config_test.go +++ b/git/ssh_config_test.go @@ -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) { diff --git a/internal/config/config_file_test.go b/internal/config/config_file_test.go index f40cb9097a5..cc6ba287fde 100644 --- a/internal/config/config_file_test.go +++ b/internal/config/config_file_test.go @@ -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") }