mck mck - 5 months ago 34
Javascript Question

Mocha, Chai: Assert that Object is included in an Array of Objects

Chai has a nice way to assert if an Array includes a certain element


What I would like is something similar, given an Array of Objects:


Is this possible?


Take a look at the Chai Things plugin, that does what you want: