2.0.0 • Published 5 years ago
unexpected-date v2.0.0
Unexpected-date
Support for useful date/time assertions for Unexpected.js
Table of Contents
Why
Use this module if you are looking for
- Assertions on native Date objects
- Dependency free light-weight module
Installation
You will need unexpected@10.32.0 or above to use this module.
Node.js
$ npm install --save-dev unexpected-date
$ yarn add --dev unexpected-datevar expect = require("unexpected").clone();
expect.use(require("unexpected-date"));Documentation
Checkout documentation site here
Assertions Available
to be afterto be beforeto be [inclusively] betweento be close toto be same or afterto be same or beforeto equal dateto equal time
Notes
This module is inspired from unexpected-moment assertions.