Refactorings
This commit is contained in:
parent
a1207f6391
commit
13a8bd025c
8 changed files with 1189 additions and 1199 deletions
|
@ -1,7 +1,7 @@
|
|||
package tgbotapi_test
|
||||
|
||||
import (
|
||||
"github.com/syfaro/telegram-bot-api"
|
||||
"github.com/zhulik/telegram-bot-api"
|
||||
"log"
|
||||
"os"
|
||||
"testing"
|
||||
|
@ -20,7 +20,8 @@ func TestMain(m *testing.M) {
|
|||
func TestNewBotAPI_notoken(t *testing.T) {
|
||||
_, err := tgbotapi.NewBotAPI("")
|
||||
|
||||
if err.Error() != tgbotapi.APIForbidden {
|
||||
if err == nil {
|
||||
log.Println(err.Error())
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue