diff options
Diffstat (limited to 'main_test.go')
-rw-r--r-- | main_test.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/main_test.go b/main_test.go index a9386d0..7e106fd 100644 --- a/main_test.go +++ b/main_test.go @@ -7,7 +7,10 @@ import ( ) func TestOAuth(t *testing.T) { - result := GetOAuth(clientID, "/home/venomade/.local/share/lifesigns/auth") + result, err := GetOAuth() + if err != nil { + t.Error(err) + } if result != "" { fmt.Println("OAuth: ", result) } else { @@ -17,7 +20,10 @@ func TestOAuth(t *testing.T) { func TestOAuthNoFile(t *testing.T) { os.Remove("/home/venomade/.local/share/lifesigns/auth") - result := GetOAuth(clientID, "/home/venomade/.local/share/lifesigns/auth") + result, err := GetOAuth() + if err != nil { + t.Error(err) + } if result != "" { fmt.Println("OAuth: ", result) } else { |