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

17 lines
268 B
Go

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