1
0
telegram/test/updates_test.go

14 lines
220 B
Go
Raw Normal View History

2018-02-15 13:57:29 +00:00
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")
}
}