Skip to content

Commit e3a316f

Browse files
hkalexlingevanlucas
authored andcommitted
test: check error message in test-http-outgoing-proto
PR-URL: #10943 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent fcd08b8 commit e3a316f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-http-outgoing-proto.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ const OutgoingMessage = http.OutgoingMessage;
77
const ClientRequest = http.ClientRequest;
88
const ServerResponse = http.ServerResponse;
99

10-
assert.throws(OutgoingMessage.prototype._implicitHeader);
10+
assert.throws(OutgoingMessage.prototype._implicitHeader,
11+
/^Error: _implicitHeader\(\) method is not implemented$/);
1112
assert.strictEqual(
1213
typeof ClientRequest.prototype._implicitHeader, 'function');
1314
assert.strictEqual(

0 commit comments

Comments
 (0)