chai-date
An extension to the chai assertion library that provides a date proximity assertion.
Installation
$ npm install chai-date
Usage
Use the assertions with chai's expect
or should
assertions.
Assertions
closeToDate
Asserts that a date is close to another date.
var date1 = 2014 3 1 13 30 10var date2 = 2014 3 1 13 30 40date1shouldbedate1shouldbe // seconds is the defaultdate1shouldnotbe
James Pike
AuthorsLicense
MIT