Skip to content

Commit

Permalink
refactor(mock-server): use published mock server module from npmjs
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Jan 10, 2018
1 parent 6fd05c1 commit 63b9d62
Show file tree
Hide file tree
Showing 17 changed files with 10 additions and 1,221 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"istanbul": "^0.4.5",
"jsdoc": "3.5.4",
"mongodb-extended-json": "^1.10.0",
"mongodb-mock-server": "^1.0.0",
"mongodb-test-runner": "^1.1.18",
"prettier": "^1.5.3",
"semver": "5.4.1",
Expand Down
2 changes: 1 addition & 1 deletion test/functional/buffering_proxy_tests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
var test = require('./shared').assert;
var co = require('co');
var mock = require('../mock');
var mock = require('mongodb-mock-server');

var extend = function(template, fields) {
var object = {};
Expand Down
2 changes: 1 addition & 1 deletion test/functional/change_stream_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var MongoNetworkError = require('mongodb-core').MongoNetworkError;
var setupDatabase = require('./shared').setupDatabase;
var delay = require('./shared').delay;
var co = require('co');
var mock = require('../mock');
var mock = require('mongodb-mock-server');

// Define the pipeline processing changes
var pipeline = [
Expand Down
2 changes: 1 addition & 1 deletion test/functional/collations_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
var test = require('./shared').assert;
var setupDatabase = require('./shared').setupDatabase;
var co = require('co');
var mock = require('../mock');
var mock = require('mongodb-mock-server');

var defaultFields = {
ismaster: true,
Expand Down
2 changes: 1 addition & 1 deletion test/functional/command_write_concern_tests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
var test = require('./shared').assert;
var co = require('co');
var mock = require('../mock');
var mock = require('mongodb-mock-server');

// Extend the object
var extend = function(template, fields) {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/max_staleness_tests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
const Long = require('bson').Long,
expect = require('chai').expect,
mock = require('../mock');
mock = require('mongodb-mock-server');

const test = {};
describe('Max Staleness', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/replicaset_mock_tests.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
var expect = require('chai').expect,
mock = require('../mock'),
mock = require('mongodb-mock-server'),
ObjectId = require('bson').ObjectId;

const test = {};
Expand Down
2 changes: 1 addition & 1 deletion test/functional/view_tests.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
var expect = require('chai').expect,
mock = require('../mock'),
mock = require('mongodb-mock-server'),
co = require('co');

describe('Views', function() {
Expand Down
81 changes: 0 additions & 81 deletions test/mock/index.js

This file was deleted.

101 changes: 0 additions & 101 deletions test/mock/lib/protocol.js

This file was deleted.

Loading

0 comments on commit 63b9d62

Please sign in to comment.