You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
telebot/context_test.go

19 lines
310 B
Go

package telebot
import (
"testing"
"github.com/stretchr/testify/assert"
)
var _ Context = (*nativeContext)(nil)
func TestContext(t *testing.T) {
t.Run("Get,Set", func(t *testing.T) {
var c Context
c = new(nativeContext)
c.Set("name", "Jon Snow")
assert.Equal(t, "Jon Snow", c.Get("name"))
})
}