Skip to content

Commit

Permalink
test: refactor test-http-invalidheaderfield
Browse files Browse the repository at this point in the history
* use common.mustNotCall() to confirm callback is not invoked
* whitespace change per test-writing guide

PR-URL: nodejs#13996
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Trott committed Jul 3, 2017
1 parent 0455fff commit 9955c30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-invalidheaderfield.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const common = require('../common');

const assert = require('assert');
const EventEmitter = require('events');
const http = require('http');
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 9955c30

Please sign in to comment.