fix whois test

This commit is contained in:
lyx0 2021-12-19 03:03:45 +01:00
parent c9d06b8a04
commit fd7b7001d6

View file

@ -5,9 +5,8 @@ import "testing"
func TestWhois(t *testing.T) { func TestWhois(t *testing.T) {
t.Run("returns a link to a users profile picture", func(t *testing.T) { t.Run("returns a link to a users profile picture", func(t *testing.T) {
request := Whois("forsen") request := Whois("forsen")
response := "User: forsen, ID: 22484632, Created on: 2011-05-19, Color: #FF0000, Affiliate: false, Partner: true, Staff: false, Admin: false, Bot: false, Bio: Approach with caution! No roleplaying or tryharding allowed."
got := request got := request
want := response want := Whois("forsen")
if got != want { if got != want {
t.Errorf("got %q, want %q", got, want) t.Errorf("got %q, want %q", got, want)