diff options
author | Alex Ling <hkalexling@gmail.com> | 2017-01-22 04:57:11 +0800 |
---|---|---|
committer | Luigi Pinca <luigipinca@gmail.com> | 2017-01-29 11:49:08 +0100 |
commit | 1155ade002423eb62044598e13bf52a68f3330e5 (patch) | |
tree | 234599f9ddf1e5a37d6ceba73e9d49f1ecbab501 | |
parent | e7f4825c8ab819eaaa1b1e16f4bd9406cefc6914 (diff) | |
download | node-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>
-rw-r--r-- | test/parallel/test-http-outgoing-proto.js | 3 |
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( |