mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[dist] make tests work reliably, add package-lock.json
This commit is contained in:
parent
812757541d
commit
09dcb98456
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@ notes
|
||||
primus-proxy.js
|
||||
tes.js
|
||||
npm-debug.log
|
||||
.nyc_output
|
||||
|
||||
@ -1,14 +1,8 @@
|
||||
sudo: false
|
||||
language: node_js
|
||||
node_js:
|
||||
- "0.10"
|
||||
- "0.12"
|
||||
- "4.2"
|
||||
- "6"
|
||||
|
||||
before_install:
|
||||
- travis_retry npm install -g npm@2.14.5
|
||||
- travis_retry npm install
|
||||
- "8"
|
||||
|
||||
script:
|
||||
- npm test
|
||||
|
||||
3418
package-lock.json
generated
Normal file
3418
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
27
package.json
27
package.json
@ -12,33 +12,26 @@
|
||||
],
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"eventemitter3": "2.0.x",
|
||||
"requires-port": "1.x.x"
|
||||
"eventemitter3": "^3.0.0",
|
||||
"requires-port": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"async": "*",
|
||||
"blanket": "*",
|
||||
"coveralls": "*",
|
||||
"dox": "*",
|
||||
"expect.js": "*",
|
||||
"mocha": "*",
|
||||
"mocha-lcov-reporter": "*",
|
||||
"async": "^2.0.0",
|
||||
"expect.js": "~0.3.1",
|
||||
"mocha": "^3.5.3",
|
||||
"nyc": "^11.7.1",
|
||||
"semver": "^5.0.3",
|
||||
"socket.io": "*",
|
||||
"socket.io-client": "*",
|
||||
"socket.io": "^2.1.0",
|
||||
"socket.io-client": "^2.1.0",
|
||||
"sse": "0.0.6",
|
||||
"ws": "^0.8.0"
|
||||
},
|
||||
"scripts": {
|
||||
"coveralls": "mocha --require blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js",
|
||||
"blanket": {
|
||||
"pattern": "lib/http-proxy"
|
||||
},
|
||||
"test": "mocha test/*-test.js",
|
||||
"test-cov": "mocha --require blanket -R html-cov > cov/coverage.html"
|
||||
"test-cov": "nyc npm test"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
"node": ">=4.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
|
||||
@ -483,6 +483,7 @@ describe('lib/http-proxy.js', function() {
|
||||
proxyServer.on('close', function() {
|
||||
proxyServer.close();
|
||||
server.close();
|
||||
destiny.close();
|
||||
if (count == 1) { done(); }
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user