mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add profilepicture test
This commit is contained in:
parent
65f6e62e7c
commit
db1a9969fa
1 changed files with 18 additions and 0 deletions
18
pkg/api/ivr/profilepicture_test.go
Normal file
18
pkg/api/ivr/profilepicture_test.go
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
package ivr
|
||||||
|
|
||||||
|
import "testing"
|
||||||
|
|
||||||
|
func TestProfilePicture(t *testing.T) {
|
||||||
|
t.Run("returns a link to a users profile picture", func(t *testing.T) {
|
||||||
|
request, _ := ProfilePicture("forsen")
|
||||||
|
response := "https://static-cdn.jtvnw.net/jtv_user_pictures/forsen-profile_image-48b43e1e4f54b5c8-600x600.png"
|
||||||
|
|
||||||
|
got := request
|
||||||
|
want := response
|
||||||
|
|
||||||
|
if got != want {
|
||||||
|
t.Errorf("got %q, want %q", got, want)
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
Loading…
Reference in a new issue