We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edf70e4 commit c8b8720Copy full SHA for c8b8720
test/document.test.js
@@ -4994,10 +4994,10 @@ describe('document', function() {
4994
var Book = db.model('gh7302_Book', bookSchema);
4995
4996
return Author.create({ name: 'Victor Hugo' }).
4997
- then(author => Book.create({ author: author._id })).
4998
- then(() => Book.findOne()).
4999
- then(doc => doc.populate('author').execPopulate()).
5000
- then(doc => {
+ then(function(author) { return Book.create({ author: author._id }); }).
+ then(function() { return Book.findOne(); }).
+ then(function(doc) { return doc.populate('author').execPopulate(); }).
+ then(function(doc) {
5001
doc.author = {};
5002
assert.ok(!doc.author.name);
5003
assert.ifError(doc.validateSync());
0 commit comments