Merge pull request #1683 from strongloop/fix/include-test-3.x
fix: use existing field in exclude test
This commit is contained in:
commit
8be05cabde
|
@ -77,7 +77,7 @@ describe('include', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should report errors if the PK is excluded', function(done) {
|
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);
|
should.exist(err);
|
||||||
err.message.should.match(/ID property "id" is missing/);
|
err.message.should.match(/ID property "id" is missing/);
|
||||||
done();
|
done();
|
||||||
|
|
Loading…
Reference in New Issue