twitter-scrapper/trends_test.go

17 lines
207 B
Go
Raw Normal View History

2020-02-12 10:45:19 +02:00
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")
}
}