Socket
Socket
Sign inDemoInstall

chai-roughly-v2

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-roughly-v2 - npm Package Compare versions

Comparing version 2.0.10 to 2.0.11

2

package.json
{
"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 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc