add following test
This commit is contained in:
parent
db699c1712
commit
0046ed18c9
1 changed files with 15 additions and 0 deletions
15
follows_test.go
Normal file
15
follows_test.go
Normal 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")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue