From d8eed12d31df71d37dc28d6f962190e062dc3cda Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sun, 22 Jan 2017 04:57:11 +0800 Subject: [PATCH] test: check error message in test-http-outgoing-proto PR-URL: https://github.com/nodejs/node/pull/10943 Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- test/parallel/test-http-outgoing-proto.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-http-outgoing-proto.js b/test/parallel/test-http-outgoing-proto.js index 738e1d2c8c..7b3f851f2f 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(