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.x
Rich Trott 8 years ago
committed by Myles Borins
parent
commit
ac851c482c
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 3
      test/parallel/test-http-invalidheaderfield.js

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

@ -1,5 +1,6 @@
'use strict';
const common = require('../common');
const assert = require('assert');
const EventEmitter = require('events');
const http = require('http');
@ -28,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