v4/interactions/router_test.go
2025-03-25 21:26:24 -07:00

16 lines
315 B
Go

package interactions_test
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestRouter(t *testing.T) {
i, _, key := makeInteractions(t)
i.Router.Add("hello-world", cmdHelloWorld)
r := sendInteraction(t, i, key, mkInteraction("hello-world"))
assert.Equal(t, "Hello world!", r.Data.Content)
}