mirror-nourybot/pkg/api/ivr/firstline_test.go
2021-10-28 22:37:58 +02:00

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)
}
})
}