Skip to content

Commit 602dd03

Browse files
TrottFishrock123
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 <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1aa6bcd commit 602dd03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-invalidheaderfield.js

Lines changed: 2 additions & 2 deletions
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)