Skip to content

Commit

Permalink
test: fix tests re: #9097
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jun 15, 2020
1 parent a632705 commit 78f5dbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/helpers/setDefaultsOnInsert.js
Expand Up @@ -17,7 +17,7 @@ module.exports = function(filter, schema, castedDoc, options) {
options = options || {};

const shouldSetDefaultsOnInsert =
options.hasOwnProperty('setDefaultsOnInsert') ?
options.setDefaultsOnInsert != null ?
options.setDefaultsOnInsert :
schema.base.options.setDefaultsOnInsert;

Expand Down
2 changes: 1 addition & 1 deletion test/index.test.js
Expand Up @@ -766,7 +766,7 @@ describe('mongoose module:', function() {
}, { collection: 'movies_1' });

const Movie = db.model('Movie', schema);

yield Movie.deleteMany({});

yield Movie.updateOne(
{},
Expand Down

0 comments on commit 78f5dbb

Please sign in to comment.