should-approximately-deep
Extend should.js to assert arrays with approximate values
Installation
npm install should-approximately-deep --save-dev
require('should-approximately-deep');
Usage
approximatelyDeep(otherValue, delta)
Asserts if a chained object is a number or a (potentially multidimensional) array of
numbers and that its values are near the ones from otherValue
within the delta
margin.
Each array must have the same number of elements.
1 2 3shouldbe;1 2 3shouldnotbe;1 2 3 4 5 6shouldbe;
License
MIT