-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
actually updated all the isSelected to $__isSelected #9886
Conversation
test/document.test.js
Outdated
@@ -9878,4 +9878,61 @@ describe('document', function() { | |||
assert.equal(ss.nested[0].toHexString(), updatedElID); | |||
}); | |||
}); | |||
it('gh9884', function() { | |||
// mongoose.set('useFindAndModify', false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get rid of these comments please
test/document.test.js
Outdated
}; | ||
|
||
const Model = db.model('Test', schema); | ||
console.log('Here'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get rid of the console.log()
calls here
test/document.test.js
Outdated
console.log('Here'); | ||
yield Model.create(newDoc); | ||
|
||
console.log('Done', yield Model.findOne(), new Date()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this one too. Just do const doc = yield Model.findOne(); assert.ok(doc);
and that should be enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
sorry again