Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: refactor test-http-invalidheaderfield
* use common.mustNotCall() to confirm callback is not invoked
* whitespace change per test-writing guide
  • Loading branch information
Trott committed Jun 30, 2017
commit 8119423691dce9cb82d3c40f818604c51795851b
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