Add user info in tweet

This commit is contained in:
Alexander Sheiko 2020-06-15 16:38:51 +03:00
parent 49baceb5b4
commit f99c2aaa1f
2 changed files with 11 additions and 2 deletions

View file

@ -19,6 +19,12 @@ func TestGetTweets(t *testing.T) {
if tweet.ID == "" {
t.Error("Expected tweet ID is not empty")
}
if tweet.UserID == "" {
t.Error("Expected tweet UserID is not empty")
}
if tweet.Username == "" {
t.Error("Expected tweet Username is not empty")
}
if tweet.PermanentURL == "" {
t.Error("Expected tweet PermanentURL is not empty")
}