fix: use existing field in exclude test
Co-authored-by: Raymond Feng <rfeng@us.ibm.com>
This commit is contained in:
parent
d3f63a8ecd
commit
0b81425a13
|
@ -77,7 +77,7 @@ describe('include', function() {
|
|||
});
|
||||
|
||||
it('should report errors if the PK is excluded', function(done) {
|
||||
User.find({include: 'posts', fields: 'posts'}, function(err) {
|
||||
User.find({include: 'posts', fields: 'name'}, function(err) {
|
||||
should.exist(err);
|
||||
err.message.should.match(/ID property "id" is missing/);
|
||||
done();
|
||||
|
|
Loading…
Reference in New Issue