Passes if the Date instance represents a time later than the specified time.
var dateA = new Date();var dateB = new Date(dateA.getTime() - 10 * 1000);expect(dateA, 'to be after', dateB);
When the assertion fails you'll get this output:
expect(new Date(Date.UTC(2010, 10, 10, 0, 0, 0)),'to be after',new Date(Date.UTC(2010, 10, 10, 0, 0, 10)));
expected new Date('2010-11-10T00:00:00Z')to be after new Date('2010-11-10T00:00:10Z')