[wip] proper tests and reporting

This commit is contained in:
Jarrett Cruger 2018-04-19 16:10:05 -04:00 committed by Charlie Robbins
parent 09dcb98456
commit f4ff1006b9
4 changed files with 9 additions and 11 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ primus-proxy.js
tes.js
npm-debug.log
.nyc_output
coverage

View File

@ -3,10 +3,12 @@ language: node_js
node_js:
- "6"
- "8"
script:
- npm test
after_success:
- bash <(curl -s https://codecov.io/bash)
matrix:
fast_finish: true
notifications:
email:
- travis@nodejitsu.com

View File

@ -5,12 +5,7 @@
node-http-proxy
=======
<p align="left">
<a href="https://travis-ci.org/nodejitsu/node-http-proxy" target="_blank">
<img src="https://travis-ci.org/nodejitsu/node-http-proxy.png"/></a>&nbsp;&nbsp;
<a href="https://coveralls.io/r/nodejitsu/node-http-proxy" target="_blank">
<img src="https://coveralls.io/repos/nodejitsu/node-http-proxy/badge.png"/></a>
</p>
[![Build Status](https://travis-ci.org/nodejitsu/node-http-proxy.svg?branch=master)](https://travis-ci.org/nodejitsu/node-http-proxy)
`node-http-proxy` is an HTTP programmable proxying library that supports
websockets. It is suitable for implementing components such as reverse
@ -341,7 +336,7 @@ proxyServer.listen(8015);
* **cookieDomainRewrite**: rewrites domain of `set-cookie` headers. Possible values:
* `false` (default): disable cookie rewriting
* String: new domain, for example `cookieDomainRewrite: "new.domain"`. To remove the domain, use `cookieDomainRewrite: ""`.
* Object: mapping of domains to new domains, use `"*"` to match all domains.
* Object: mapping of domains to new domains, use `"*"` to match all domains.
For example keep one domain unchanged, rewrite one domain and remove other domains:
```
cookieDomainRewrite: {

View File

@ -27,8 +27,8 @@
"ws": "^0.8.0"
},
"scripts": {
"test": "mocha test/*-test.js",
"test-cov": "nyc npm test"
"mocha": "mocha test/*-test.js",
"test": "nyc --reporter=text --reporter=lcov npm run mocha"
},
"engines": {
"node": ">=4.0.0"