chai-roughly-v2
Advanced tools
Comparing version 2.0.10 to 2.0.11
{ | ||
"name": "chai-roughly-v2", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"description": "deep equals assertions with tolerance for chai (with fixed dependency on deep-eql)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ chai-roughly | ||
deep equals assertions with tolerance for chai. | ||
Deep equal assertions with tolerance for [chai](https://www.npmjs.com/package/chai). | ||
@@ -24,3 +24,3 @@ ### Why a v2? | ||
After importing `chai` add the following code to use `chai-roughly-v2` assertions: | ||
After importing `chai`, add the following code to use `chai-roughly-v2` assertions: | ||
@@ -39,4 +39,5 @@ ```js | ||
```js | ||
it('works', function () { | ||
expect({value: 42}).to.roughly.deep.equal({value: 41.9999999}); | ||
it('works', () => { | ||
const x = 41.9999999; | ||
expect(x).to.roughly.deep.equal({ value: 42 }); | ||
}); | ||
@@ -43,0 +44,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5363
46