2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-29 13:27:44 +00:00

Fix test for TelegramBot#sendVenue()

This commit is contained in:
GochoMugo 2016-10-10 12:57:10 +03:00
parent 997b69691e
commit 618555101f
No known key found for this signature in database
GPG Key ID: 7B6A01CB57AA39E4

View File

@ -460,11 +460,12 @@ describe('Telegram', function telegramSuite() {
const address = `430 Topsail Rd,St. John's, NL A1E 4N1, Canada`; const address = `430 Topsail Rd,St. John's, NL A1E 4N1, Canada`;
return bot.sendVenue(USERID, lat, long, title, address).then(resp => { return bot.sendVenue(USERID, lat, long, title, address).then(resp => {
assert.ok(is.object(resp)); assert.ok(is.object(resp));
assert.ok(is.object(resp.location)); assert.ok(is.object(resp.venue));
assert.ok(is.number(resp.location.latitude)); assert.ok(is.object(resp.venue.location));
assert.ok(is.number(resp.location.longitude)); assert.ok(is.number(resp.venue.location.latitude));
assert.ok(is.string(resp.title)); assert.ok(is.number(resp.venue.location.longitude));
assert.ok(is.string(resp.address)); assert.ok(is.string(resp.venue.title));
assert.ok(is.string(resp.venue.address));
}); });
}); });
}); });