Skip to content

Commit 447347c

Browse files
silverwindMyles Borins
authored andcommitted
test: fix issues for space-in-parens ESLint rule
PR-URL: #4753 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
1 parent 39cb69c commit 447347c

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎test/parallel/test-beforeexit-event.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var common = require('../common');
55
varrevivals=0;
66
vardeaths=0;
77

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

1010
process.once('beforeExit',tryImmediate);
1111

‎test/parallel/test-crypto-hmac.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ var wikipedia = [
6262
for(vari=0,l=wikipedia.length;i<l;i++){
6363
for(varhashinwikipedia[i]['hmac']){
6464
// FIPS does not support MD5.
65-
if(common.hasFipsCrypto&&hash=='md5')
65+
if(common.hasFipsCrypto&&hash=='md5')
6666
continue;
6767
varresult=crypto.createHmac(hash,wikipedia[i]['key'])
6868
.update(wikipedia[i]['data'])

‎test/parallel/test-http-client-timeout-agent.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var options = {
1717
varserver=http.createServer(function(req,res){
1818
constm=/\/(.*)/.exec(req.url);
1919
constreqid=parseInt(m[1],10);
20-
if(reqid%2){
20+
if(reqid%2){
2121
// do not reply the request
2222
}else{
2323
res.writeHead(200,{'Content-Type': 'text/plain'});

‎test/parallel/test-process-binding.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ assert.throws(
1212
assert.doesNotThrow(function(){
1313
process.binding('buffer');
1414
},function(err){
15-
if((errinstanceofError)){
15+
if(errinstanceofError){
1616
returntrue;
1717
}
1818
},'unexpected error');

‎test/pummel/test-timers.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ clearTimeout(id);
3030

3131
setInterval(function(){
3232
interval_count+=1;
33-
varendtime=newDate();
33+
varendtime=newDate();
3434

3535
vardiff=endtime-starttime;
3636
assert.ok(diff>0);

0 commit comments

Comments
 (0)