chai-date
An extension to the chai assertion library that provides a set of date assertions.
Installation
$ npm install chai-date
Usage
Use the assertions with chai's expect
or should
assertions.
Assertions
today
Asserts that the given date is today
var today = todayshouldbe
yesterday
Asserts that the given date is yesterday
var yesterday = today - 1yesterdayshouldbe
tomorrow
Asserts that the given date is tomorrow
var tomorrow = today + 1tomorrowshouldbe
Test
$ npm test
Christopher Garvis & Moveline
AuthorsLicense
MIT