mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
18 lines
497 B
Go
18 lines
497 B
Go
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("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
|
|
want := response
|
|
|
|
if got != want {
|
|
t.Errorf("got %q, want %q", got, want)
|
|
}
|
|
|
|
})
|
|
}
|