chai-object

Object include assertions for the Chai assertion library

chai-object

An extension to the chai assertion library (VERSION: 1.6.0) that provides a set of include object assertions.

$ npm install chai-object
chai = require('chai')
chai.should()
object = require('chai-object')
chai.use object
({test: 1}).should.includeObj({test: 1})

....

$ npm test

MIT