interactions yay!!
This commit is contained in:
parent
b9a05bedf9
commit
f60033a3e4
30 changed files with 716 additions and 44 deletions
16
interactions/router_test.go
Normal file
16
interactions/router_test.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue