chai-isodatetime
Plugin for Chai to use .toISODate() for date comparisons
Usage
;;chai.useisoDateTime;
Assertions
- equalDate - Checks if both dates equal each other using .toISODate() for comparison
;; date1.should.equalDatedate2;expectdate1.to.equalDatedate2assert.equalDatedate1, date2
Acknowledgement
Thanks to chai-datetime for getting me most of the way there!
License
MIT