Skip to content

Commit

Permalink
Merge pull request #14 from stephenyeargin/fix-help-command
Browse files Browse the repository at this point in the history
 Fix help text for expired token
  • Loading branch information
stephenyeargin authored Jul 10, 2018
2 parents e97cf90 + 05cad6c commit 0e6ed88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fitbit-leaders.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ module.exports = (robot) ->
displayErrors = (err, msg) ->
for own key, error of err.errors
if error.errorType == 'expired_token'
msg.send "Your Fitbit token has expired! See `#{robot.name} token` to set up a new one."
msg.send "Your Fitbit token has expired! See `#{robot.name} fitbit token` to set up a new one."
else
robot.logger.error err
msg.send error.message
Expand Down
2 changes: 1 addition & 1 deletion test/fitbit-leaders_test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ describe 'hubot-fitbit-leaders', ->
try
expect(selfRoom.messages).to.eql [
['alice', '@hubot fitbit leaders']
['hubot', 'Your Fitbit token has expired! See `hubot token` to set up a new one.']
['hubot', 'Your Fitbit token has expired! See `hubot fitbit token` to set up a new one.']
]
done()
catch err
Expand Down

0 comments on commit 0e6ed88

Please sign in to comment.