Skip to content

Commit 59db68f

Browse files
greenkeeperio-botIlya Radchenko
authored andcommitted
Update all dependencies 🌴
* chore(package): update dependencies https://greenkeeper.io/ * change mock order priority * test latest node versions * change order of node versions
1 parent 430058a commit 59db68f

File tree

3 files changed

+31
-29
lines changed

3 files changed

+31
-29
lines changed

‎.travis.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: node_js
22
node_js:
3-
- "0.12"
43
- "0.10"
4+
- "0.12"
5+
- "4"
6+
- "node"
57

68
sudo: false

‎package.json‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,21 @@
3737
"inline_icon": "git-square"
3838
},
3939
"devDependencies": {
40-
"expect.js": "~0.2.0",
41-
"jshint": "~2.1.11",
42-
"mocha": "~2.2.3",
43-
"nock": "^2.10.0"
40+
"expect.js": "~0.3.1",
41+
"jshint": "~2.9.2",
42+
"mocha": "~2.4.5",
43+
"nock": "^8.0.0"
4444
},
4545
"dependencies": {
46-
"async": "~0.2.9",
47-
"debug": "~0.7.3",
46+
"async": "~2.0.0-rc.3",
47+
"debug": "~2.2.0",
4848
"gravatar": "^1.0.6",
49-
"lodash": "~2.2.0",
49+
"lodash": "~4.11.1",
5050
"parse-link-header": "^0.4.1",
5151
"proxyquire": "^1.7.1",
52-
"step": "0.0.5",
52+
"step": "0.0.6",
5353
"strider-git": "^0.2.4",
54-
"superagent": "~1.3.0"
54+
"superagent": "~1.8.3"
5555
},
5656
"bugs": {
5757
"url": "https://github.com/Strider-CD/strider-gitlab/issues"

‎test/mocks/gitlab_create_hooks.js‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,25 @@ var nock = require('nock');
1616

1717
module.exports = function () {
1818

19+
//--------------------------------------------------------------------------------------
20+
//Simulate a 401 reply if api key is not sent
21+
nock('http://localhost:80')
22+
.post('/api/v3/projects/5/hooks', {
23+
"url": "http://localhost:3000/stridertester/privproject1/api/gitlab/webhook",
24+
"push_events": true
25+
})
26+
.reply(401, {"message": "401 Unauthorized"}, {
27+
server: 'nginx',
28+
date: 'Fri, 21 Aug 2015 14:42:46 GMT',
29+
'content-type': 'application/json',
30+
'content-length': '30',
31+
connection: 'close',
32+
status: '401 Unauthorized',
33+
'cache-control': 'no-cache',
34+
'x-request-id': '052eafeb-0028-4e69-b951-95925efdc232',
35+
'x-runtime': '0.004600'
36+
});
37+
1938
//--------------------------------------------------------------------------------------
2039
//Simulate 201 replies when we request the addition of a new project
2140
//(adding hooks and keys)
@@ -71,25 +90,6 @@ module.exports = function () {
7190
'x-runtime': '0.099567'
7291
});
7392

74-
//--------------------------------------------------------------------------------------
75-
//Simulate a 401 reply if api key is not sent
76-
nock('http://localhost:80')
77-
.post('/api/v3/projects/5/hooks', {
78-
"url": "http://localhost:3000/stridertester/privproject1/api/gitlab/webhook",
79-
"push_events": true
80-
})
81-
.reply(401, {"message": "401 Unauthorized"}, {
82-
server: 'nginx',
83-
date: 'Fri, 21 Aug 2015 14:42:46 GMT',
84-
'content-type': 'application/json',
85-
'content-length': '30',
86-
connection: 'close',
87-
status: '401 Unauthorized',
88-
'cache-control': 'no-cache',
89-
'x-request-id': '052eafeb-0028-4e69-b951-95925efdc232',
90-
'x-runtime': '0.004600'
91-
});
92-
9393
//--------------------------------------------------------------------------------------
9494
//Simulate a 404 if we passed an incorrect repo id
9595
nock('http://localhost:80')

0 commit comments

Comments
 (0)