mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
19 lines
350 B
Go
19 lines
350 B
Go
package ivr
|
|
|
|
import "testing"
|
|
|
|
func TestFirstLine(t *testing.T) {
|
|
t.Run("returns a users first message in a channel", func(t *testing.T) {
|
|
request, _ := FirstLine("forsen", "forsen")
|
|
response := "forsen: EZ or Ezy (3y, 9mo, 16d ago)."
|
|
|
|
got := request
|
|
want := response
|
|
|
|
if got != want {
|
|
t.Errorf("got %q, want %q", got, want)
|
|
}
|
|
|
|
})
|
|
}
|