diff --git a/package.json b/package.json index ab4958bce7..f3d62daf66 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "url": "https://github.com/mongodb/node-mongodb-native/issues" }, "scripts": { - "test": "mongodb-test-runner -t 60000 test/functional", + "test": "mongodb-test-runner -t 60000 test/unit test/functional", "coverage": "node_modules/.bin/nyc node test/runner.js -t functional && node_modules/.bin/nyc report --reporter=text-lcov | node_modules/.bin/coveralls", "lint": "eslint lib test", "format": "prettier --print-width 100 --tab-width 2 --single-quote --write 'test/**/*.js' 'lib/**/*.js'" diff --git a/test/functional/sessions_tests.js b/test/unit/sessions/client_tests.js similarity index 90% rename from test/functional/sessions_tests.js rename to test/unit/sessions/client_tests.js index d24e6b7294..ad252c68e6 100644 --- a/test/functional/sessions_tests.js +++ b/test/unit/sessions/client_tests.js @@ -1,13 +1,13 @@ 'use strict'; -const MongoClient = require('../..').MongoClient; +const MongoClient = require('../../..').MongoClient; const expect = require('chai').expect; -const assign = require('../../lib/utils').assign; -const mock = require('../mock'); +const assign = require('../../../lib/utils').assign; +const mock = require('../../mock'); const test = {}; describe('Sessions', function() { - describe('unit', function() { + describe('Client', function() { afterEach(() => mock.cleanup()); beforeEach(() => { return mock.createServer().then(server => {