diff --git a/follows_test.go b/follows_test.go new file mode 100644 index 0000000..26ed836 --- /dev/null +++ b/follows_test.go @@ -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") + } +}