Skip to content

Commit 42679a5

Browse files
committed
Deprecated Mongoose connect options removed
1 parent 822fc45 commit 42679a5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/mongoose-encryptedstring.test.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ describe('mongoose-encrypted-string test suite', () => {
1313

1414
beforeAll(async () => {
1515
mongoServer = await MongoMemoryServer.create({ dbName: 'encryptedstring' });
16-
const dbOptions = {
17-
useNewUrlParser: true,
18-
useUnifiedTopology: true
19-
};
20-
await mongoose.connect(mongoServer.getUri(), dbOptions);
16+
await mongoose.connect(mongoServer.getUri());
2117
mes.registerEncryptedString(mongoose, testKey);
2218
Person = mongoose.model('Person', {
2319
id: { type: String, required: true },

0 commit comments

Comments
 (0)