add following test

This commit is contained in:
Valentine 2024-02-21 05:56:50 +03:00
parent db699c1712
commit 0046ed18c9

15
follows_test.go Normal file
View file

@ -0,0 +1,15 @@
package twitterscraper_test
import (
"testing"
)
func TestFetchFollowing(t *testing.T) {
users, _, err := testScraper.FetchFollowing("Support", 20, "")
if err != nil {
t.Error(err)
}
if len(users) < 1 || users[len(users)-1].Username == "" {
t.Error("error FetchFollowing() No users found")
}
}