1
0
Fork 0
telegram/test/updates_test.go

14 lines
220 B
Go

package test
import "testing"
func TestGetUpdates(t *testing.T) {
updates, err := bot.GetUpdates(nil)
if err != nil {
t.Error(err.Error())
}
if len(updates) <= 0 {
t.Error("unexpected result: no updates")
}
}