Skip to content

Commit 03f6c03

Browse files
raphaeleidusNik 'Fire Eater' Krimm
authored and
Nik 'Fire Eater' Krimm
committed
fix broken test suite from #393 (#407)
* fix broken test suite from #393 * fix deprecation message and use function name
1 parent 77121f9 commit 03f6c03

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/resolveOptions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function resolveOptions(options) {
3535

3636
if (options.intercept) {
3737
console.warn(
38-
'DEPRECATED: intercept. Use decorateUseRes instead.' +
38+
'DEPRECATED: intercept. Use userResDecorator instead.' +
3939
' Please see README for more information.'
4040
);
4141
}

test/middlewareCompatibility.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('middleware compatibility', function () {
4747
});
4848

4949
app.use(proxy('localhost:12346', {
50-
intercept: function (rsp, data, req) {
50+
userResDecorator: function (rsp, data, req) {
5151
assert(req.body);
5252
assert.equal(req.body.foo, 1);
5353
assert.equal(req.body.mypost, 'hello');

test/traceDebugging.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var proxy = require('../');
77
var proxyTarget = require('../test/support/proxyTarget');
88

99
/* This test is specifically written because of critical errors thrown while debug logging. */
10-
describe.only('trace debugging does not cause the application to fail', function () {
10+
describe('trace debugging does not cause the application to fail', function () {
1111
var proxyServer;
1212

1313
beforeEach(function () { debug.enable('express-http-proxy'); proxyServer = proxyTarget(3000); });

test/verbs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('http verbs', function () {
2424
.end(function (err, res) {
2525
if (err) { return done(err); }
2626
assert(/node-superagent/.test(res.body.headers['User-Agent']));
27-
assert.equal(res.body.url, 'http://httpbin.org/get');
27+
assert.equal(res.body.url, 'https://httpbin.org/get');
2828
done(err);
2929
});
3030
});

0 commit comments

Comments
 (0)