Fix help tests

bot-api-6.1
Amir Khazaie 2018-10-15 12:41:02 +03:30
parent b2addf5f91
commit 97ba9e12bf
1 changed files with 1 additions and 2 deletions

View File

@ -148,10 +148,9 @@ func TestNewEditMessageText(t *testing.T) {
}
func TestNewEditMessageCaption(t *testing.T) {
edit := tgbotapi.NewEditMessageCaption(ChatID, ReplyToMessageID, "new caption", tgbotapi.ModeHTML)
edit := tgbotapi.NewEditMessageCaption(ChatID, ReplyToMessageID, "new caption")
if edit.Caption != "new caption" ||
edit.ParseMode != tgbotapi.ModeHTML ||
edit.BaseEdit.ChatID != ChatID ||
edit.BaseEdit.MessageID != ReplyToMessageID {
t.Fail()