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/api_test.go

16 lines
242 B
Go

package telebot
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestRaw(t *testing.T) {
b, err := newTestBot()
assert.NoError(t, err)
_, err = b.Raw("BAD METHOD", nil)
assert.EqualError(t, err, ErrNotFound.Error())
}