Fix profile test
This commit is contained in:
parent
24811aeec7
commit
0183c20011
1 changed files with 12 additions and 12 deletions
|
|
@ -11,25 +11,25 @@ import (
|
||||||
|
|
||||||
func TestGetProfile(t *testing.T) {
|
func TestGetProfile(t *testing.T) {
|
||||||
loc := time.FixedZone("UTC", 0)
|
loc := time.FixedZone("UTC", 0)
|
||||||
joined := time.Date(2007, 02, 20, 14, 35, 54, 0, loc)
|
joined := time.Date(2010, 01, 18, 8, 49, 30, 0, loc)
|
||||||
sample := Profile{
|
sample := Profile{
|
||||||
Avatar: "https://pbs.twimg.com/profile_images/1354479643882004483/Btnfm47p_normal.jpg",
|
Avatar: "https://pbs.twimg.com/profile_images/436075027193004032/XlDa2oaz_normal.jpeg",
|
||||||
Banner: "https://pbs.twimg.com/profile_banners/783214/1619544410",
|
Banner: "https://pbs.twimg.com/profile_banners/106037940/1541084318",
|
||||||
Biography: "What's happening?!",
|
Biography: "nothing",
|
||||||
// Birthday: "March 21",
|
// Birthday: "March 21",
|
||||||
IsPrivate: false,
|
IsPrivate: false,
|
||||||
IsVerified: true,
|
IsVerified: false,
|
||||||
Joined: &joined,
|
Joined: &joined,
|
||||||
Location: "everywhere",
|
Location: "Ukraine",
|
||||||
Name: "Twitter",
|
Name: "Nomadic",
|
||||||
PinnedTweetIDs: []string{},
|
PinnedTweetIDs: []string{},
|
||||||
URL: "https://twitter.com/Twitter",
|
URL: "https://twitter.com/nomadic_ua",
|
||||||
UserID: "783214",
|
UserID: "106037940",
|
||||||
Username: "Twitter",
|
Username: "nomadic_ua",
|
||||||
Website: "https://about.twitter.com/",
|
Website: "https://nomadic.name",
|
||||||
}
|
}
|
||||||
|
|
||||||
profile, err := GetProfile("Twitter")
|
profile, err := GetProfile("nomadic_ua")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue