summary refs log tree commit diff
path: root/main_test.go
diff options
context:
space:
mode:
authorvenomade <venomade@venomade.com>2024-12-16 22:04:47 +0000
committervenomade <venomade@venomade.com>2024-12-16 22:04:47 +0000
commit12080f04fb2121c1076a23cedc7e17e360da648d (patch)
tree775793154fa19064a27e5c2103a76481e7f025d5 /main_test.go
parent21874c403c7b04da9cf408a42dfd7aab6ae3177d (diff)
Improvements to README, DataDir, DEBUG and comments HEAD master
Expand README
Remove Hardcoding of Data Directory
Add DEBUG const
Remove unnecesary comments
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go10
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 {