Skip to content

Commit c8b8720

Browse files
committed
style: fix lint
1 parent edf70e4 commit c8b8720

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/document.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -4994,10 +4994,10 @@ describe('document', function() {
49944994
var Book = db.model('gh7302_Book', bookSchema);
49954995

49964996
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 => {
4997+
then(function(author) { return Book.create({ author: author._id }); }).
4998+
then(function() { return Book.findOne(); }).
4999+
then(function(doc) { return doc.populate('author').execPopulate(); }).
5000+
then(function(doc) {
50015001
doc.author = {};
50025002
assert.ok(!doc.author.name);
50035003
assert.ifError(doc.validateSync());

0 commit comments

Comments
 (0)