mirror of https://github.com/tucnak/telebot
commit
83bd8dd89d
@ -1,3 +1,16 @@
|
||||
package telebot
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
var _ Context = (*nativeContext)(nil)
|
||||
|
||||
func TestContextStore(t *testing.T) {
|
||||
var c Context
|
||||
c = new(nativeContext)
|
||||
c.Set("name", "Jon Snow")
|
||||
assert.Equal(t, "Jon Snow", c.Get("name"))
|
||||
}
|
||||
|
Loading…
Reference in New Issue