14 lines
220 B
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")
|
||
|
}
|
||
|
}
|