Skip to content

Instantly share code, notes, and snippets.

@nolanamy
Created April 21, 2015 22:40
Show Gist options
  • Save nolanamy/1809537932dae75dc0d4 to your computer and use it in GitHub Desktop.
Save nolanamy/1809537932dae75dc0d4 to your computer and use it in GitHub Desktop.
Should test for date being around now
var timestampMoment = moment.unix(res.body.timestamp);
(timestampMoment.isBetween(before.subtract(1, 'second'), moment().add(1, 'second'))).should.be.true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment