Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jan 20, 2019
1 parent edf70e4 commit c8b8720
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/document.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit c8b8720

Please sign in to comment.