telebot/context_test.go
Кобелев Андрей Андреевич 1b497f2b9b init
2023-02-01 12:08:20 +03:00

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