mck mck - 1 year ago 95
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?

Answer Source

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