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