to be after
- <moment> [not] to be after <moment|string|number|date|array|object>
Passes if the moment instance represents a time later than the specified time.
expect(moment(), 'to be after', moment().subtract(1, 'hour'));
It supports any value supported by moment#isAfter
When the assertion fails you'll get this output:
expect(moment('2015-02-03'), 'to be after', moment('2015-04-03'));
expected moment('2015-02-03T00:00:00.000+01:00')
to be after moment('2015-04-03T00:00:00.000+02:00')