From d64272306d0a43c623b366f28040af1a0109a1a7 Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Sat, 30 Oct 2021 00:20:03 +0200 Subject: [PATCH] add whois test --- pkg/api/ivr/whois_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pkg/api/ivr/whois_test.go diff --git a/pkg/api/ivr/whois_test.go b/pkg/api/ivr/whois_test.go new file mode 100644 index 0000000..57b03c8 --- /dev/null +++ b/pkg/api/ivr/whois_test.go @@ -0,0 +1,18 @@ +package ivr + +import "testing" + +func TestWhois(t *testing.T) { + t.Run("returns a link to a users profile picture", func(t *testing.T) { + request := Whois("nouryqt") + response := "User: Nouryqt, ID: 31437432, Created on: 2012-06-18, Color: #00F2FB, Affiliate: false, Partner: false, Staff: false, Admin: false, Bot: false, Bio: me :)" + + got := request + want := response + + if got != want { + t.Errorf("got %q, want %q", got, want) + } + + }) +}