Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Aug 28, 2023
1 parent fe7f80b commit 0d956ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/model.updateOne.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3052,6 +3052,11 @@ describe('model: updateOne: ', function() {
}, { message: 'No document found for query "{ name: \'Anakin\' }" on model "gh-11620"' });
});
it('updateOne with top level key that starts with $ (gh-13786)', async function() {
const [major] = await start.mongodVersion();
if (major < 5) {
return this.skip();
}

const schema = new mongoose.Schema({
$myKey: String
});
Expand Down

0 comments on commit 0d956ce

Please sign in to comment.