From db1a9969fa6054eeb87c13e8fed2ad462a6ede39 Mon Sep 17 00:00:00 2001 From: lyx0 Date: Thu, 28 Oct 2021 22:47:34 +0200 Subject: [PATCH] add profilepicture test --- pkg/api/ivr/profilepicture_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pkg/api/ivr/profilepicture_test.go diff --git a/pkg/api/ivr/profilepicture_test.go b/pkg/api/ivr/profilepicture_test.go new file mode 100644 index 0000000..4c83c50 --- /dev/null +++ b/pkg/api/ivr/profilepicture_test.go @@ -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) + } + + }) +}