test: refactor test-http-invalidheaderfield

* use common.mustNotCall() to confirm callback is not invoked
* whitespace change per test-writing guide

PR-URL: https://github.com/nodejs/node/pull/13996
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Rich Trott committed 2017-07-02 21:57:08 -07:00
1 parent 0455fff880
commit 9955c30df3
1 file changed
+2 -2
@@ -1,6 +1,6 @@
'use strict';
const common = require('../common');
const assert = require('assert');
const EventEmitter = require('events');
const http = require('http');
@@ -29,7 +29,7 @@ server.listen(0, function() {
port: server.address().port,
headers: {'testing 123': 123}
};
http.get(options, common.noop);
http.get(options, common.mustNotCall());
},
function(err) {
ee.emit('done');