Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

chai-members-deep

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-members-deep

Extends chai.js with deep equality member checks, optionally also tracking the identity of nested objects.

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
438
-24.35%
Maintainers
1
Weekly downloads
 
Created
Source

chai-members-deep Build Status

This extends chai.js with deep equality member checks, optionally also tracking the identity of nested objects (see deep-equal-ident) for more info on that.

Install

npm install chai-members-deep

Usage

chai.use(require('chai-members-deep'));

The require and should interfaces already provided the ability to test for members with the deep flag. This extensions adds the equivalent methods to the assert interface:

assert.sameMembersDeep(a, b);
assert.sameMembersDeepIdent(a, b);
assert.includeMembersDeep(a, b);
assert.includeMembersDeepIdent(a, b);

Since it uses the chai extension of deep-equal-ident, it also includes

expect(a).to.identically.deep.equal(b);
assert.deepEqualIdent(a, b);

Keywords

chai

FAQs

Package last updated on 11 Jun 2015

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