Skip to content

Commit

Permalink
test: skip tests for #14115 if MongoDB < 5
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 13, 2023
1 parent dadac4e commit 95d917b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/query.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4385,6 +4385,11 @@ describe('Query', function() {
});

it('does not apply sibling path defaults if using nested projection (gh-14115)', async function() {
const version = await start.mongodVersion();
if (version[0] < 5) {
return this.skip();
}

const userSchema = new mongoose.Schema({
name: String,
account: {
Expand Down

0 comments on commit 95d917b

Please sign in to comment.