bifocal/node_modules/@tryghost/mongo-knex/test/utils/assertions.js

8 lines
187 B
JavaScript

should.Assertion.add('matchIds', function (idsExpected) {
const idsReturned = this.obj.map((entry) => {
return entry.id;
});
idsExpected.should.eql(idsReturned);
});