From fdcae1f5837b75703b7c98580ff31a1462397704 Mon Sep 17 00:00:00 2001 From: biniam Date: Thu, 17 Jan 2019 15:06:20 -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();