Skip to content

Commit

Permalink
Merge pull request #132 from tomyan/master
Browse files Browse the repository at this point in the history
Upgrade dependencies to latest versions
  • Loading branch information
Mikhail Mokrushin authored Aug 2, 2019
2 parents b352948 + 01c1986 commit d96d5b0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
3 changes: 1 addition & 2 deletions .jscsrc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,5 @@
},
"disallowSpacesInsideParentheses": true,
"disallowMultipleLineBreaks": true,
"disallowNewlineBeforeBlockStatements": true,
"esnext": true
"disallowNewlineBeforeBlockStatements": true
}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
language: node_js
node_js:
- "6"
- "10"
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@
"test": "./node_modules/jshint/bin/jshint index.js && ./node_modules/jscs/bin/jscs index.js && ./node_modules/mocha/bin/mocha"
},
"dependencies": {
"extend": "^2.0.1",
"lodash": "^4.17.2",
"request": "^2.56.0",
"vow": "^0.4.9",
"ws": "^1.0.1",
"ws-heartbeat": "^1.0.4"
"extend": "^3.0.2",
"lodash": "^4.17.15",
"request": "^2.88.0",
"vow": "^0.4.20",
"ws": "^7.1.1",
"ws-heartbeat": "^1.1.0"
},
"devDependencies": {
"chai": "^2.3.0",
"jscs": "^1.13.1",
"jshint": "^2.8.0",
"mocha": "^2.2.5",
"sinon": "^1.14.1",
"sinon-chai": "^2.8.0"
"chai": "^4.2.0",
"jscs": "^3.0.7",
"jshint": "^2.10.2",
"mocha": "^6.2.0",
"sinon": "^7.3.2",
"sinon-chai": "^3.3.0"
}
}
6 changes: 3 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('slack-this.bot-api', function() {
it('check url', function(done) {
var r1;

sinon.stub(request, 'post', function(data, cb) {
sinon.stub(request, 'post').callsFake(function(data, cb) {
r1 = data;
cb(null, null, '{}');
});
Expand All @@ -97,7 +97,7 @@ describe('slack-this.bot-api', function() {
});

it('response without error', function(done) {
sinon.stub(request, 'post', function(data, cb) {
sinon.stub(request, 'post').callsFake(function(data, cb) {
cb(null, null, "{\"ok\": true}");
});

Expand All @@ -108,7 +108,7 @@ describe('slack-this.bot-api', function() {
});

it('response with error', function(done) {
sinon.stub(request, 'post', function(data, cb) {
sinon.stub(request, 'post').callsFake(function(data, cb) {
cb(null, null, "{\"ok\": false}");
});

Expand Down

0 comments on commit d96d5b0

Please sign in to comment.