diff --git a/main_test.go b/main_test.go index 3ae215f..753517f 100644 --- a/main_test.go +++ b/main_test.go @@ -8,17 +8,6 @@ import ( "testing" ) -func TestGetConfigFilePath(t *testing.T) { - configFilePath, err := getConfigFilePath() - if err != nil { - t.Fatalf("should not be fail: %v", err) - } - if !strings.Contains(configFilePath, defaultTokenFilePath) { - t.Fatalf("%q should be contained in output of config file path: %v", - defaultTokenFilePath, configFilePath) - } -} - func TestSaveToken(t *testing.T) { token := "abcde" fp := "/tmp/gistup/token" @@ -56,3 +45,14 @@ func TestSaveToken(t *testing.T) { t.Fatalf("want %q but %q", token, string(bs)) } } + +func TestGetConfigFilePath(t *testing.T) { + configFilePath, err := getConfigFilePath() + if err != nil { + t.Fatalf("should not be fail: %v", err) + } + if !strings.Contains(configFilePath, defaultTokenFilePath) { + t.Fatalf("%q should be contained in output of config file path: %v", + defaultTokenFilePath, configFilePath) + } +}