From 0046ed18c96bded24526d418b81f7c46bc385b7d Mon Sep 17 00:00:00 2001 From: Valentine Date: Wed, 21 Feb 2024 05:56:50 +0300 Subject: [PATCH] add following test --- follows_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 follows_test.go 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") + } +}