Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 447347c

Browse filesBrowse 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
Copy full SHA for 447347c

File tree

Expand file treeCollapse file tree

5 files changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

5 files changed

+5
-5
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-beforeexit-event.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var common = require('../common');
55
var revivals = 0;
66
var deaths = 0;
77

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

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

Collapse file

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

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

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

Copy file name to clipboardExpand all lines: test/parallel/test-http-client-timeout-agent.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var options = {
1717
var server = http.createServer(function(req, res) {
1818
const m = /\/(.*)/.exec(req.url);
1919
const reqid = 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'});
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-process-binding.js
+1-1Lines 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 ( (err instanceof Error) ) {
15+
if (err instanceof Error) {
1616
return true;
1717
}
1818
}, 'unexpected error');
Collapse file

‎test/pummel/test-timers.js‎

Copy file name to clipboardExpand all lines: test/pummel/test-timers.js
+1-1Lines 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-
var endtime = new Date( );
33+
var endtime = new Date();
3434

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.