Total refactoring
Used guest frontend API BREAKING CHANGE: remove tweet.HTML property Loading more information Minor fixes and changes
This commit is contained in:
parent
1c582e142e
commit
edad8f6393
15 changed files with 628 additions and 497 deletions
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue