Skip to content

Commit

Permalink
test(model): add test for #8130
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Sep 4, 2019
1 parent cad316a commit 3a105e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/model.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4773,6 +4773,11 @@ describe('Model', function() {
});
});

it('returns empty array if no documents (gh-8130)', function() {
const Movie = db.model('gh8130', Schema({ name: String }));
return Movie.insertMany([]).then(docs => assert.deepEqual(docs, []));
});

it('insertMany() multi validation error with ordered false (gh-5337)', function(done) {
const schema = new Schema({
name: { type: String, required: true }
Expand Down

0 comments on commit 3a105e6

Please sign in to comment.