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

chai-deep-match

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-deep-match

Extends Chai with an assertion for deeply matching objects (i.e. subset equality checking)

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
158K
increased by1.73%
Maintainers
1
Weekly downloads
 
Created
Source

chai-deep-match

GitHub Latest Release Build Status Coverage Status Dependency Status Dev Dependency Status

Extends Chai with an assertion for deeply matching objects (i.e. subset equality checking).

Install

$ npm install --save chai

$ npm install --save chai-deep-match

Usage

var chai = require('chai');
var chaiDeepMatch = require('chai-deep-match');

chai.use( chaiDeepMatch );


chai.expect( { a: 'foo', b: 'bar', c: 'baz' } ).to.deep.match( { a: 'foo', c: 'baz' } );
// =>  pass

chai.expect( { a: 'foo', b: 'bar', c: 'baz' } ).to.not.deep.match( { a: 'fuzz', c: 'baz' } );
// =>  pass

License

Copyright (c) 2016, James M. Greene (MIT License)

Keywords

FAQs

Package last updated on 01 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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