Skip to content

Commit

Permalink
remove unnecessary legacy connection option
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 1, 2023
1 parent b2f3b55 commit d2a7d39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mongoose-lean-getters",
"version": "1.1.0",
"version": "1.2.0",
"description": "Apply getters to the results of mongoose queries when using `.lean()`",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions test/examples.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const mongooseLeanGetters = require('../');

describe('mongoose-lean-getters', function() {
before(function() {
return mongoose.connect('mongodb://127.0.0.1:27017/test', { useNewUrlParser: true });
return mongoose.connect('mongodb://127.0.0.1:27017/test');
});

after(() => mongoose.disconnect());
Expand Down Expand Up @@ -36,4 +36,4 @@ describe('mongoose-lean-getters', function() {

assert.equal(doc.name, 'Picard');
});
});
});
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const mongooseLeanGetters = require('../');

describe('mongoose-lean-getters', function() {
before(function() {
return mongoose.connect('mongodb://127.0.0.1:27017/test', { useNewUrlParser: true });
return mongoose.connect('mongodb://127.0.0.1:27017/test');
});

after(() => mongoose.disconnect());
Expand Down

0 comments on commit d2a7d39

Please sign in to comment.