Fix cursor test

This commit is contained in:
Alexander Sheiko 2023-03-02 11:59:27 +02:00
parent 7d5b51da84
commit 78bf7d6365

View file

@ -2,6 +2,7 @@ package twitterscraper_test
import (
"context"
"strings"
"testing"
twitterscraper "github.com/n0madic/twitter-scraper"
@ -17,6 +18,9 @@ func TestFetchSearchCursor(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if strings.HasPrefix(cursor, "scroll:") {
continue
}
if cursor == "" {
t.Fatal("Expected search cursor is empty")
}