Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.8 to 2.0.9

2

index.js
const debug = require('debug')
const deep_eql = require('deep-eql')
const log = debug('chai-roughly')
const log = debug('chai-roughly-v2')

@@ -6,0 +6,0 @@ module.exports = function (chai, utils) {

{
"name": "chai-roughly-v2",
"version": "2.0.8",
"version": "2.0.9",
"description": "deep equals assertions with tolerance for chai (with fixed dependency on deep-eql)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,29 +0,29 @@

chai-roughly
==============================================================================
[![Build Status](https://travis-ci.org/Turbo87/chai-roughly.svg?branch=master)](https://travis-ci.org/Turbo87/chai-roughly)
[![Build status](https://ci.appveyor.com/api/projects/status/github/Turbo87/chai-roughly?svg=true)](https://ci.appveyor.com/project/Turbo87/chai-roughly/branch/master)
[![npm](https://img.shields.io/npm/v/chai-roughly.svg)](https://www.npmjs.com/package/chai-roughly)
![CI Build](https://github.com/micdah/chai-roughly/actions/workflows/ci.yml/badge.svg)
[![npm](https://img.shields.io/npm/v/chai-roughly-v2.svg)](https://www.npmjs.com/package/chai-roughly-v2)
deep equals assertions with tolerance for chai
deep equals assertions with tolerance for chai.
### Why a v2?
Installation
------------------------------------------------------------------------------
This is a forked version from [Turbo87/chai-roughly](https://github.com/Turbo87/chai-roughly), which have been updated
to use the latest version of [chaijs/deep-eql](https://github.com/chaijs/deep-eql), rather than using a modified forked
version.
## Installation
```shell
npm install --save-dev chai-roughly-v2
```
npm install --save-dev chai-roughly
```
Usage
------------------------------------------------------------------------------
## Usage
After importing `chai` add the following code to use `chai-roughly` assertions:
After importing `chai` add the following code to use `chai-roughly-v2` assertions:
```js
var chai = require('chai');
var expect = chai.expect;
const chai = require('chai');
chai.use(require('chai-roughly'));
chai.use(require('chai-roughly-v2'));
```

@@ -37,10 +37,9 @@

```js
it('works', function() {
expect({ value: 42 }).to.roughly.deep.equal({ value: 41.9999999 });
it('works', function () {
expect({value: 42}).to.roughly.deep.equal({value: 41.9999999});
});
```
## License
License
------------------------------------------------------------------------------
chai-roughly is licensed under the [MIT License](LICENSE).

Sorry, the diff of this file is not supported yet

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