Skip to content

Commit

Permalink
test: remove probably unnecessary check for MongoDB 4
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 30, 2022
1 parent 89141a0 commit 686096d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/model.field.selection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,13 +548,6 @@ describe('model field selection', function() {
});

it('handles deselecting _id when other field has schema-level `select: false` (gh-12670)', async function() {
const version = await start.mongodVersion();
// Test fails with "Projection cannot have a mix of inclusion and exclusion."
// in MongoDB < 5
if (version[0] < 5) {
return this.skip();
}

const schema = new mongoose.Schema({
field1: {
type: String,
Expand Down

0 comments on commit 686096d

Please sign in to comment.