Add Trends
This commit is contained in:
parent
75d9805984
commit
cea7f72d9d
5 changed files with 159 additions and 70 deletions
16
trends_test.go
Normal file
16
trends_test.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package twitterscraper
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetTrends(t *testing.T) {
|
||||
trends, err := GetTrends()
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
if len(trends) != 10 {
|
||||
t.Error("Expected 10 trends")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue