From 0b81425a13bd74577a1ca9d5cba3cfeed6b22cb4 Mon Sep 17 00:00:00 2001 From: biniam Date: Wed, 16 Jan 2019 13:18:21 -0500 Subject: [PATCH] fix: use existing field in exclude test Co-authored-by: Raymond Feng --- test/include.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/include.test.js b/test/include.test.js index 4703bbf6..edd2b474 100644 --- a/test/include.test.js +++ b/test/include.test.js @@ -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();