summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-outgoing-proto.js
diff options
context:
space:
mode:
authorAlex Ling <hkalexling@gmail.com>2017-01-22 04:57:11 +0800
committerLuigi Pinca <luigipinca@gmail.com>2017-01-29 11:49:08 +0100
commit1155ade002423eb62044598e13bf52a68f3330e5 (patch)
tree234599f9ddf1e5a37d6ceba73e9d49f1ecbab501 /test/parallel/test-http-outgoing-proto.js
parente7f4825c8ab819eaaa1b1e16f4bd9406cefc6914 (diff)
downloadnode-new-1155ade002423eb62044598e13bf52a68f3330e5.tar.gz
test: check error message in test-http-outgoing-proto
PR-URL: https://github.com/nodejs/node/pull/10943 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-http-outgoing-proto.js')
-rw-r--r--test/parallel/test-http-outgoing-proto.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-http-outgoing-proto.js b/test/parallel/test-http-outgoing-proto.js
index 53198708b4..dac9363867 100644
--- a/test/parallel/test-http-outgoing-proto.js
+++ b/test/parallel/test-http-outgoing-proto.js
@@ -7,7 +7,8 @@ const OutgoingMessage = http.OutgoingMessage;
const ClientRequest = http.ClientRequest;
const ServerResponse = http.ServerResponse;
-assert.throws(OutgoingMessage.prototype._implicitHeader);
+assert.throws(OutgoingMessage.prototype._implicitHeader,
+ /^Error: _implicitHeader\(\) method is not implemented$/);
assert.strictEqual(
typeof ClientRequest.prototype._implicitHeader, 'function');
assert.strictEqual(