Browse Source

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>
v6
Rich Trott 7 years ago
parent
commit
9955c30df3
  1. 4
      test/parallel/test-http-invalidheaderfield.js

4
test/parallel/test-http-invalidheaderfield.js

@ -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');

Loading…
Cancel
Save