Merge pull request #1683 from strongloop/fix/include-test-3.x

fix: use existing field in exclude test
This commit is contained in:
Biniam Admikew 2019-01-17 15:38:39 -05:00 committed by GitHub
commit 8be05cabde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();