Skip to content

Commit 81c6447

Browse files
Trottaddaleax
authored andcommitted
test: refactor test-http-invalidheaderfield
* use common.mustNotCall() to confirm callback is not invoked * whitespace change per test-writing guide PR-URL: #13996 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent d69527f commit 81c6447

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-invalidheaderfield.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
2-
32
const common = require('../common');
3+
44
const assert = require('assert');
55
const EventEmitter = require('events');
66
const http = require('http');
@@ -29,7 +29,7 @@ server.listen(0, function() {
2929
port: server.address().port,
3030
headers: {'testing 123': 123}
3131
};
32-
http.get(options, common.noop);
32+
http.get(options, common.mustNotCall());
3333
},
3434
function(err) {
3535
ee.emit('done');

0 commit comments

Comments
 (0)