Ok. I\'ve tried to read other questions here but still didn\'t find a straightforward answer.
How can I assert a partial object match in an array using chai? Something
Since chai-like@0.2.14 the following approch will work:
var chai = require('chai'), expect = chai.expect; chai.use(require('chai-like')); chai.use(require('chai-things')); // Don't swap these two expect(data).to.be.an('array').that.contains.something.like({name: 'test'});