I am looking for the best way to match the following:
expect([ { C1: \'xxx\', C0: \'this causes it not to match.\' } ]).to.deep.incl
I believe the simplest (and certainly easiest) way would be to:
var actual=[ { C1:'xxx', C0:'yyy' } ]; actual.forEach(function(obj){ expect(obj).to.have.property('C1','xxx'); });