Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
Related #120
  • Loading branch information
nodkz committed Dec 19, 2018
1 parent 3afdae3 commit ab9d5e6
Show file tree
Hide file tree
Showing 6 changed files with 447 additions and 362 deletions.
38 changes: 19 additions & 19 deletions package.json
Expand Up @@ -25,40 +25,40 @@
},
"homepage": "https://github.com/nodkz/mongodb-memory-server",
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/node": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/cli": "^7.2.0",
"@babel/core": "^7.2.2",
"@babel/node": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.2.1",
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
"@babel/plugin-proposal-optional-chaining": "^7.2.0",
"@babel/plugin-transform-flow-strip-types": "^7.2.0",
"@babel/preset-env": "^7.2.0",
"@babel/preset-flow": "^7.0.0",
"@types/getos": "^3.0.0",
"@types/node": "^10.12.2",
"@types/node": "^10.12.17",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"cross-env": "^5.2.0",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^5.8.0",
"eslint": "^5.10.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^3.1.0",
"eslint-config-prettier": "^3.3.0",
"eslint-plugin-flowtype": "^3.2.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-prettier": "^3.0.0",
"flow-bin": "^0.85.0",
"flow-bin": "^0.89.0",
"jest": "^23.6.0",
"mongodb": "^3.1.6",
"npm-run-all": "^4.1.3",
"prettier": "^1.14.3",
"mongodb": "^3.1.10",
"npm-run-all": "^4.1.5",
"prettier": "^1.15.3",
"rimraf": "^2.6.2",
"semantic-release": "^15.10.7",
"tslint": "^5.11.0",
"typescript": "^3.1.6"
"semantic-release": "^15.13.1",
"tslint": "^5.12.0",
"typescript": "^3.2.2"
},
"dependencies": {
"@babel/runtime": "^7.1.2",
"@babel/runtime": "^7.2.0",
"debug": "^4.1.0",
"decompress": "^4.2.0",
"find-cache-dir": "^2.0.0",
Expand Down
20 changes: 8 additions & 12 deletions src/__tests__/replset-test.js
Expand Up @@ -53,16 +53,12 @@ describe('multi-member replica set', () => {
replSet = (null: any);
});

it(
'should enter running state',
async () => {
const opts: any = { replSet: { count: 3 } };
replSet = new MongoMemoryReplSet(opts);
await replSet.waitUntilRunning();
expect(replSet.servers.length).toEqual(3);
const uri = await replSet.getUri();
expect(uri.split(',').length).toEqual(3);
},
40000
);
it('should enter running state', async () => {
const opts: any = { replSet: { count: 3 } };
replSet = new MongoMemoryReplSet(opts);
await replSet.waitUntilRunning();
expect(replSet.servers.length).toEqual(3);
const uri = await replSet.getUri();
expect(uri.split(',').length).toEqual(3);
}, 40000);
});
2 changes: 1 addition & 1 deletion src/util/MongoBinary.js
Expand Up @@ -51,7 +51,7 @@ export default class MongoBinary {

let debug;
if (opts.debug) {
if (opts.debug.call && typeof opts.debug === 'function' && opts.debug.apply) {
if (typeof opts.debug === 'function' && opts.debug.apply) {
debug = opts.debug;
} else {
debug = console.log.bind(null);
Expand Down
2 changes: 1 addition & 1 deletion src/util/MongoBinaryDownload.js
Expand Up @@ -58,7 +58,7 @@ export default class MongoBinaryDownload {
};

if (debug) {
if (debug.call && typeof debug === 'function' && debug.apply) {
if (typeof debug === 'function' && debug.apply) {
this.debug = debug;
} else {
this.debug = console.log.bind(null);
Expand Down
6 changes: 1 addition & 5 deletions src/util/MongoInstance.js
Expand Up @@ -54,11 +54,7 @@ export default class MongodbInstance {
}

if (this.opts.instance && this.opts.instance.debug) {
if (
this.opts.instance.debug.call &&
typeof this.opts.instance.debug === 'function' &&
this.opts.instance.debug.apply
) {
if (typeof this.opts.instance.debug === 'function' && this.opts.instance.debug.apply) {
this.debug = this.opts.instance.debug;
} else {
this.debug = console.log.bind(null);
Expand Down

0 comments on commit ab9d5e6

Please sign in to comment.