Skip to content

Commit

Permalink
Fix getMe test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmodrey committed Nov 26, 2016
1 parent 709f44a commit 9a045f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ test('bot.answerList', t => {
});

test('bot.getMe', t => {
return bot.getMe().then(re => {
t.true(re.ok && re.result.id == bot.id);
return bot.getMe().then(data => {
t.true(data && data.id == bot.id);
});
});

Expand Down

0 comments on commit 9a045f4

Please sign in to comment.