Skip to content

Commit f4ff100

Browse files
jcrugzzindexzero
authored andcommitted
[wip] proper tests and reporting
1 parent 09dcb98 commit f4ff100

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ primus-proxy.js
77
tes.js
88
npm-debug.log
99
.nyc_output
10+
coverage

.travis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ language: node_js
33
node_js:
44
- "6"
55
- "8"
6-
76
script:
87
- npm test
9-
8+
after_success:
9+
- bash <(curl -s https://codecov.io/bash)
10+
matrix:
11+
fast_finish: true
1012
notifications:
1113
email:
1214

README.md

+2-7
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@
55
node-http-proxy
66
=======
77

8-
<p align="left">
9-
<a href="https://travis-ci.org/nodejitsu/node-http-proxy" target="_blank">
10-
<img src="https://travis-ci.org/nodejitsu/node-http-proxy.png"/></a>&nbsp;&nbsp;
11-
<a href="https://coveralls.io/r/nodejitsu/node-http-proxy" target="_blank">
12-
<img src="https://coveralls.io/repos/nodejitsu/node-http-proxy/badge.png"/></a>
13-
</p>
8+
[![Build Status](https://travis-ci.org/nodejitsu/node-http-proxy.svg?branch=master)](https://travis-ci.org/nodejitsu/node-http-proxy)
149

1510
`node-http-proxy` is an HTTP programmable proxying library that supports
1611
websockets. It is suitable for implementing components such as reverse
@@ -341,7 +336,7 @@ proxyServer.listen(8015);
341336
* **cookieDomainRewrite**: rewrites domain of `set-cookie` headers. Possible values:
342337
* `false` (default): disable cookie rewriting
343338
* String: new domain, for example `cookieDomainRewrite: "new.domain"`. To remove the domain, use `cookieDomainRewrite: ""`.
344-
* Object: mapping of domains to new domains, use `"*"` to match all domains.
339+
* Object: mapping of domains to new domains, use `"*"` to match all domains.
345340
For example keep one domain unchanged, rewrite one domain and remove other domains:
346341
```
347342
cookieDomainRewrite: {

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"ws": "^0.8.0"
2828
},
2929
"scripts": {
30-
"test": "mocha test/*-test.js",
31-
"test-cov": "nyc npm test"
30+
"mocha": "mocha test/*-test.js",
31+
"test": "nyc --reporter=text --reporter=lcov npm run mocha"
3232
},
3333
"engines": {
3434
"node": ">=4.0.0"

0 commit comments

Comments
 (0)