Skip to content

Commit e0279f6

Browse files
yookoalafbbdev
authored andcommitted
update devDependencies (#22)
update dev dependencies
1 parent 4f56362 commit e0279f6

File tree

5 files changed

+841
-27
lines changed

5 files changed

+841
-27
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
node_modules
33
npm-debug.log
44

5+
#yarn
6+
yarn.lock
7+
58
#Istanbul coverage folder
69
coverage
710

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- '0.12'
54
- '4'
65
- '5'
6+
- '6'
7+
- '7'
8+
- '8'
9+
- '9'
710
- 'node'
811
after_script:
912
- npm run coveralls

package.json

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,40 @@
22
"name": "node-fastcgi",
33
"version": "1.3.3-alpha",
44
"description": "Create FastCGI applications in node. Near drop-in replacement for node's http module.",
5-
"keywords": [ "fcgi", "fastcgi", "server" ],
5+
"keywords": [
6+
"fcgi",
7+
"fastcgi",
8+
"server"
9+
],
610
"homepage": "https://github.com/fbbdev/node-fastcgi",
711
"author": {
812
"name": "Fabio Massaioli",
913
"email": "[email protected]"
1014
},
1115
"license": "MIT",
1216
"main": "./index.js",
13-
"engines": { "node": ">= 0.12" },
17+
"engines": {
18+
"node": ">= 0.12"
19+
},
1420
"dependencies": {
1521
"fastcgi-stream": "^1.0.0"
1622
},
17-
"repository" : {
18-
"type" : "git",
19-
"url" : "https://github.com/fbbdev/node-fastcgi.git"
23+
"repository": {
24+
"type": "git",
25+
"url": "https://github.com/fbbdev/node-fastcgi.git"
2026
},
2127
"devDependencies": {
22-
"chai": "^3.5.0",
23-
"coveralls": "^2.11.9",
28+
"chai": "^4.1.2",
29+
"coveralls": "^3.0.0",
2430
"fcgi-handler": "git+https://github.com/aredridel/fcgi-handler.git#afe16eae560280d5dd84241d0c45e5db0f939d25",
2531
"istanbul": "^0.4.3",
2632
"lodash": "^4.9.0",
27-
"mocha": "^2.4.5",
33+
"mocha": "^5.0.0",
2834
"mocha-lcov-reporter": "^1.2.0",
2935
"request": "^2.70.0"
3036
},
3137
"scripts": {
32-
"test": "./node_modules/.bin/mocha ./test/mocha/integration",
33-
"coveralls": "./node_modules/.bin/istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha -- ./test/mocha/integration && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
38+
"test": "./node_modules/.bin/mocha --exit ./test/mocha/integration",
39+
"coveralls": "./node_modules/.bin/istanbul cover --report lcovonly ./node_modules/mocha/bin/_mocha -- --exit ./test/mocha/integration && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
3440
}
3541
}

test/mocha/integration/echo.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ describe('echo Server', function setup() {
117117
expect(res.headers['content-type']).to.be.equal('application/json; charset=utf-8');
118118

119119
var echo = JSON.parse(body);
120-
expect(echo).to.have.deep.property('cgiParams.PATH_INFO', '/');
121-
expect(echo).to.have.deep.property('cgiParams.SERVER_PROTOCOL', 'HTTP/1.1');
122-
expect(echo).to.have.deep.property('cgiParams.SERVER_SOFTWARE', 'Node/' + process.version);
123-
expect(echo).to.have.deep.property('cgiParams.REQUEST_METHOD', this.method);
124-
expect(echo).to.have.deep.property('cgiParams.QUERY_STRING', '');
125-
expect(echo).to.have.deep.property('cgiParams.HTTP_HOST', 'localhost:' + port);
120+
expect(echo).to.have.nested.property('cgiParams.PATH_INFO', '/');
121+
expect(echo).to.have.nested.property('cgiParams.SERVER_PROTOCOL', 'HTTP/1.1');
122+
expect(echo).to.have.nested.property('cgiParams.SERVER_SOFTWARE', 'Node/' + process.version);
123+
expect(echo).to.have.nested.property('cgiParams.REQUEST_METHOD', this.method);
124+
expect(echo).to.have.nested.property('cgiParams.QUERY_STRING', '');
125+
expect(echo).to.have.nested.property('cgiParams.HTTP_HOST', 'localhost:' + port);
126126

127127
done(err);
128128
});
@@ -141,9 +141,9 @@ describe('echo Server', function setup() {
141141
expect(res.headers['content-type']).to.be.equal('application/json; charset=utf-8');
142142

143143
var echo = JSON.parse(body);
144-
expect(echo).to.have.deep.property('cgiParams.PATH_INFO', requestPath);
145-
expect(echo).to.have.deep.property('cgiParams.REQUEST_METHOD', this.method);
146-
expect(echo).to.have.deep.property('data', this.body.toString());
144+
expect(echo).to.have.nested.property('cgiParams.PATH_INFO', requestPath);
145+
expect(echo).to.have.nested.property('cgiParams.REQUEST_METHOD', this.method);
146+
expect(echo).to.have.nested.property('data', this.body.toString());
147147

148148
done(err);
149149
});
@@ -165,8 +165,8 @@ describe('echo Server', function setup() {
165165
expect(res.headers['content-type']).to.be.equal('application/json; charset=utf-8');
166166

167167
var echo = JSON.parse(body);
168-
expect(echo).to.have.deep.property('cgiParams.PATH_INFO', requestPath);
169-
expect(echo).to.have.deep.property('url', requestPath + '?a=b&ca=d');
168+
expect(echo).to.have.nested.property('cgiParams.PATH_INFO', requestPath);
169+
expect(echo).to.have.nested.property('url', requestPath + '?a=b&ca=d');
170170

171171
done(err);
172172
});
@@ -186,7 +186,7 @@ describe('echo Server', function setup() {
186186
expect(res.headers['content-type']).to.be.equal('application/json; charset=utf-8');
187187

188188
var echo = JSON.parse(body);
189-
expect(echo).to.have.deep.property('headers.authorization', 'Basic QXJ0aHVyRGVudDpJIHRoaW5rIEknbSBhIHNvZmEuLi4=');
189+
expect(echo).to.have.nested.property('headers.authorization', 'Basic QXJ0aHVyRGVudDpJIHRoaW5rIEknbSBhIHNvZmEuLi4=');
190190

191191
done(err);
192192
});
@@ -212,10 +212,10 @@ describe('echo Server', function setup() {
212212
expect(res.headers['content-type']).to.be.equal('application/json; charset=utf-8');
213213

214214
var echo = JSON.parse(body);
215-
expect(echo).to.have.deep.property('headers.x-testhdr', hdr1);
216-
expect(echo).to.have.deep.property('headers.x-test-hdr', hdr2);
217-
expect(echo).to.have.deep.property('headers.content-length', cl);
218-
expect(echo).to.have.deep.property('headers.content-type', ct);
215+
expect(echo).to.have.nested.property('headers.x-testhdr', hdr1);
216+
expect(echo).to.have.nested.property('headers.x-test-hdr', hdr2);
217+
expect(echo).to.have.nested.property('headers.content-length', cl);
218+
expect(echo).to.have.nested.property('headers.content-type', ct);
219219

220220
done(err);
221221
});

0 commit comments

Comments
 (0)