mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add userid test
This commit is contained in:
parent
db1a9969fa
commit
a0bceb916e
18
pkg/api/ivr/userid_test.go
Normal file
18
pkg/api/ivr/userid_test.go
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
package ivr
|
||||||
|
|
||||||
|
import "testing"
|
||||||
|
|
||||||
|
func TestUserid(t *testing.T) {
|
||||||
|
t.Run("returns a link to a users profile picture", func(t *testing.T) {
|
||||||
|
request := Userid("nouryqt")
|
||||||
|
response := "31437432"
|
||||||
|
|
||||||
|
got := request
|
||||||
|
want := response
|
||||||
|
|
||||||
|
if got != want {
|
||||||
|
t.Errorf("got %q, want %q", got, want)
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
Loading…
Reference in a new issue