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