Skip to content

Commit

Permalink
test: remove duplicate configuration code
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Oct 15, 2019
1 parent 3fe378a commit 33744f5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/runner/config.js
Expand Up @@ -56,15 +56,6 @@ class NativeConfiguration {
}

newClient(dbOptions, serverOptions) {
if (typeof dbOptions === 'string') {
return new MongoClient(
dbOptions,
this.usingUnifiedTopology()
? Object.assign({ useUnifiedTopology: true }, serverOptions)
: serverOptions
);
}

// support MongoClient contructor form (url, options) for `newClient`
if (typeof dbOptions === 'string') {
return new MongoClient(
Expand Down

0 comments on commit 33744f5

Please sign in to comment.