Skip to content

Commit f55ffa3

Browse files
committed
auth header added tests
1 parent ab5c3e5 commit f55ffa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/lib-http-proxy-common-test.js

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ describe('lib/http-proxy/common.js', function () {
1717
},
1818
headers: {'fizz': 'bang', 'overwritten':true},
1919
localAddress: 'local.address',
20+
auth:'username:pass'
2021
},
2122
{
2223
method : 'i',
@@ -37,6 +38,7 @@ describe('lib/http-proxy/common.js', function () {
3738
expect(outgoing.headers.fizz).to.eql('bang');
3839
expect(outgoing.headers.overwritten).to.eql(true);
3940
expect(outgoing.localAddress).to.eql('local.address');
41+
expect(outgoing.auth).to.eql('username:pass');
4042
});
4143

4244
it('should not override agentless upgrade header', function () {

0 commit comments

Comments
 (0)