Skip to content

Instantly share code, notes, and snippets.

@thabotitus
Last active August 30, 2016 13:32
Show Gist options
  • Save thabotitus/706dea22dc4811a57289b5493e0b1965 to your computer and use it in GitHub Desktop.
Save thabotitus/706dea22dc4811a57289b5493e0b1965 to your computer and use it in GitHub Desktop.
JS Test Example 1
it('returns true when a new date is the future', function() {
var tomorrow = new Date(); tomorrow.setDate(tomorrow.getDate() + 1);
expect(self.disbursement_dates_valid(tomorrow)).toBe(true);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment