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>
This commit is contained in:
Alex Ling authored and Myles Borins committed 2017-03-08 17:11:21 -08:00
1 parent b4dc7a778f
commit d8eed12d31
1 file changed
+2 -1
+2 -1
View File
@@ -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(