Total refactoring

Used guest frontend API
BREAKING CHANGE: remove tweet.HTML property
Loading more information
Minor fixes and changes
This commit is contained in:
Alexander Sheiko 2020-12-11 20:58:49 +02:00
parent 1c582e142e
commit edad8f6393
15 changed files with 628 additions and 497 deletions

View file

@ -10,7 +10,13 @@ func TestGetTrends(t *testing.T) {
t.Error(err)
}
if len(trends) != 10 {
t.Errorf("Expected 10 trends, got %d: %#v", len(trends), trends)
if len(trends) != 20 {
t.Errorf("Expected 20 trends, got %d: %#v", len(trends), trends)
}
for _, trend := range trends {
if trend == "" {
t.Error("Expected trend is not empty")
}
}
}