Separate test package
This commit is contained in:
parent
55a0c83804
commit
4c9f06806a
7 changed files with 58 additions and 44 deletions
|
|
@ -1,11 +1,13 @@
|
|||
package twitterscraper
|
||||
package twitterscraper_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
twitterscraper "github.com/n0madic/twitter-scraper"
|
||||
)
|
||||
|
||||
func TestGetTrends(t *testing.T) {
|
||||
trends, err := GetTrends()
|
||||
trends, err := twitterscraper.GetTrends()
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue