chai-samsam
Extends Chai with an assertion for deeply matching just about any kind of object using samsam.
This project started out as a fork of chai-deep-match.
Its interface and test cases have been retained and all pass. Thus it can be used as a drop in replacement.
However, it allows for much looser and deeper matching. (See the samsam docs)
Install
$ npm install --save chai$ npm install --save chai-samsam
Usage
const chai = const chaiSamSam = chai todeep// => pass tonotdeep// => pass // also possibleassertassert
License
Copyright (c) 2017, Tim Beyer (MIT License)