deep equals assertions with tolerance for chai
npm install --save-dev chai-roughly
chai add the following code to use
var chai = ;var expect = chaiexpect;chai;
Now you can use the
expect(...).to.roughly.deep.equal(...) chain for deep
equals assertions with tolerance for numbers. The default tolerance is
and can be overwritten by using e.g.
chai-roughly is licensed under the MIT License.