fix: use existing field in exclude test

Co-authored-by: Raymond Feng <rfeng@us.ibm.com>
This commit is contained in:
biniam 2019-01-17 15:06:20 -05:00
parent e141693e26
commit fdcae1f583
1 changed files with 1 additions and 1 deletions

View File

@ -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();