Skip to content

Commit

Permalink
Merge branch '7.x' into vkarpov15/gh-14177
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 29, 2023
2 parents 0e7ec7f + 485f155 commit 4b77619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/schema.select.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('schema select option', function() {
assert.equal(findByIdDocAgain.isSelected('name'), false);
assert.equal(findByIdDocAgain.isSelected('docs.name'), false);
assert.strictEqual(undefined, findByIdDocAgain.name);
const findUpdateDoc = await Test.findOneAndUpdate({ _id: doc._id });
const findUpdateDoc = await Test.findOneAndUpdate({ _id: doc._id }, { name: 'the excluded' });
assert.equal(findUpdateDoc.isSelected('name'), false);
assert.equal(findUpdateDoc.isSelected('docs.name'), false);
assert.strictEqual(undefined, findUpdateDoc.name);
Expand Down

0 comments on commit 4b77619

Please sign in to comment.