mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
fix expected error message when node 0.12.x
This commit is contained in:
parent
c33d1616cd
commit
0ee314c436
@ -166,7 +166,11 @@ describe('lib/http-proxy.js', function() {
|
||||
|
||||
proxy.on('error', function (err, req, res) {
|
||||
expect(err).to.be.an(Error);
|
||||
expect(err.toString()).to.be('Error: DEPTH_ZERO_SELF_SIGNED_CERT')
|
||||
if (process.versions.node.indexOf('0.12.') == 0) {
|
||||
expect(err.toString()).to.be('Error: self signed certificate')
|
||||
} else {
|
||||
expect(err.toString()).to.be('Error: DEPTH_ZERO_SELF_SIGNED_CERT')
|
||||
}
|
||||
done();
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user