diff --git a/package-lock.json b/package-lock.json index 4f7e13ec..072f0d69 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4201,13 +4201,14 @@ } }, "mongodb": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.3.2.tgz", - "integrity": "sha512-fqJt3iywelk4yKu/lfwQg163Bjpo5zDKhXiohycvon4iQHbrfflSAz9AIlRE6496Pm/dQKQK5bMigdVo2s6gBg==", + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.3.4.tgz", + "integrity": "sha512-6fmHu3FJTpeZxacJcfjUGIP3BSteG0l2cxLkSrf1nnnS1OrlnVGiP9P/wAC4aB6dM6H4vQ2io8YDjkuPkje7AA==", "requires": { "bson": "^1.1.1", "require_optional": "^1.0.1", - "safe-buffer": "^5.1.2" + "safe-buffer": "^5.1.2", + "saslprep": "^1.0.0" } }, "mongodb-collection-sample": { diff --git a/package.json b/package.json index ce8a4e04..cd683472 100644 --- a/package.json +++ b/package.json @@ -40,10 +40,9 @@ "lodash.partial": "^4.2.1", "lodash.union": "^4.6.0", "lodash.uniqby": "^4.5.0", - "mongodb": "^3.3.2", + "mongodb": "^3.3.4", "mongodb-collection-sample": "^4.4.3", "mongodb-connection-model": "^14.3.2", - "mongodb-core": "^3.2.7", "mongodb-index-model": "^2.3.0", "mongodb-js-errors": "^0.3.3", "mongodb-ns": "^2.0.0", diff --git a/test/native-client.test.js b/test/native-client.test.js index 9562873c..dd596337 100644 --- a/test/native-client.test.js +++ b/test/native-client.test.js @@ -2,7 +2,6 @@ var helper = require('./helper'); var assert = helper.assert; var expect = helper.expect; var eventStream = helper.eventStream; -var Connection = require('mongodb-connection-model'); var ObjectId = require('bson').ObjectId; var mock = require('mock-require'); @@ -102,21 +101,6 @@ describe('NativeClient', function() { }); }); }); - - context('when an invalid connection was provided', function() { - var badConnection = new Connection({ - hostname: '127.0.0.1', - port: 27050, - ns: 'data-service' - }); - var badClient = new NativeClient(badConnection); - it('maps the error message', function(done) { - badClient.connect(function(error) { - expect(error.message).to.include('connect'); - done(); - }); - }); - }); }); describe('#command', function() { @@ -786,20 +770,6 @@ describe('NativeClient', function() { }); }); - describe('#disconnect', function() { - after(function(done) { - client.connect(done); - }); - - it('disconnects the database', function(done) { - client.disconnect(); - client.count('data-service.test', {}, {}, function(error) { - expect(error.message).to.include('destroyed'); - done(); - }); - }); - }); - describe('#indexes', function() { it('returns the indexes', function(done) { client.indexes('data-service.test', function(err, indexes) {