Skip to content

Commit

Permalink
test: fix issues for space-in-parens ESLint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Jan 19, 2016
1 parent d908ecf commit f9efb7a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/parallel/test-beforeexit-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var common = require('../common');
var revivals = 0;
var deaths = 0;

process.on('beforeExit', function() { deaths++; } );
process.on('beforeExit', function() { deaths++; });

process.once('beforeExit', tryImmediate);

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-crypto-hmac.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var wikipedia = [
for (var i = 0, l = wikipedia.length; i < l; i++) {
for (var hash in wikipedia[i]['hmac']) {
// FIPS does not support MD5.
if (common.hasFipsCrypto && hash == 'md5' )
if (common.hasFipsCrypto && hash == 'md5')
continue;
var result = crypto.createHmac(hash, wikipedia[i]['key'])
.update(wikipedia[i]['data'])
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-http-client-timeout-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var options = {
var server = http.createServer(function(req, res) {
const m = /\/(.*)/.exec(req.url);
const reqid = parseInt(m[1], 10);
if ( reqid % 2 ) {
if (reqid % 2) {
// do not reply the request
} else {
res.writeHead(200, {'Content-Type': 'text/plain'});
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-process-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ assert.throws(
assert.doesNotThrow(function() {
process.binding('buffer');
}, function(err) {
if ( (err instanceof Error) ) {
if (err instanceof Error) {
return true;
}
}, 'unexpected error');
2 changes: 1 addition & 1 deletion test/pummel/test-timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ clearTimeout(id);

setInterval(function() {
interval_count += 1;
var endtime = new Date( );
var endtime = new Date();

var diff = endtime - starttime;
assert.ok(diff > 0);
Expand Down

0 comments on commit f9efb7a

Please sign in to comment.