Unexpected plugin for date/time assertions
npm install unexpected-date



Support for useful date/time assertions for
Unexpected.js
- Why
- Installation
- Documentation
- Notes
Use this module if you are looking for
- Assertions on native Date objects
- Dependency free light-weight module
You will need unexpected@10.32.0 or above to use this module.
```
$ npm install --save-dev unexpected-date
$ yarn add --dev unexpected-date
`javascript`
var expect = require("unexpected").clone();
expect.use(require("unexpected-date"));
Checkout documentation site here
- to be afterto be before
- to be [inclusively] between
- to be close to
- to be same or after
- to be same or before
- to equal date
- to equal time`
-
This module is inspired from unexpected-moment assertions.