From c8b87207c0390757b08e8e6d334560d7d6047af6 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Sun, 20 Jan 2019 11:18:13 -0500 Subject: [PATCH] style: fix lint --- test/document.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/document.test.js b/test/document.test.js index f14c3762eca..db3edf7fc43 100644 --- a/test/document.test.js +++ b/test/document.test.js @@ -4994,10 +4994,10 @@ describe('document', function() { var Book = db.model('gh7302_Book', bookSchema); return Author.create({ name: 'Victor Hugo' }). - then(author => Book.create({ author: author._id })). - then(() => Book.findOne()). - then(doc => doc.populate('author').execPopulate()). - 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) { doc.author = {}; assert.ok(!doc.author.name); assert.ifError(doc.validateSync());