hubot-archive / hubot-pager-me

PagerDuty integration for Hubot
https://www.npmjs.com/package/hubot-pager-me
MIT License
73 stars 93 forks source link

Fix deprecation warning from Moment.js #42

Closed stephenyeargin closed 9 years ago

stephenyeargin commented 9 years ago

Prior to this PR, a user may encounter the message below in their console. This is the result of a deprecation warning thrown in Moment.js, where the preferred order of arguments has been swapped.

Deprecation warning: moment().add(period, number) is deprecated. Please use moment().add(number, period).

  • Registers tests, fixes testing harness to reslove an issue with Sinon/Chai
  • Fixes deprecation notice that has crept in with updates
  • Bumps moment-timezone version to latest release
technicalpickles commented 9 years ago

Looks good :+1: