test: add spaces after keywords

eg changes:

  if(x) { ... }

to:

  if (x) { ... }
This commit is contained in:
Brendan Ashworth 2015-08-18 16:32:07 -07:00
parent b125ad186c
commit 8af5962608
6 changed files with 6 additions and 6 deletions

View File

@ -54,7 +54,7 @@ function getall() {
setImmediate(getall);
}
for(var i = 0; i < 10; i++)
for (var i = 0; i < 10; i++)
getall();
function afterGC() {

View File

@ -18,7 +18,7 @@ var common = require('../common'),
// take the first non-internal interface as the address for binding
get_bindAddress: for (var name in networkInterfaces) {
var interfaces = networkInterfaces[name];
for(var i = 0; i < interfaces.length; i++) {
for (var i = 0; i < interfaces.length; i++) {
var localInterface = interfaces[i];
if (!localInterface.internal && localInterface.family === 'IPv4') {
var bindAddress = localInterface.address;

View File

@ -663,7 +663,7 @@ TEST(function test_resolve_failure(done) {
var req = dns.resolve4('nosuchhostimsure', function(err) {
assert(err instanceof Error);
switch(err.code) {
switch (err.code) {
case 'ENOTFOUND':
case 'ESERVFAIL':
break;

View File

@ -11,7 +11,7 @@ process.on('exit', function() {
// this should fail with an async EINVAL error, not throw an exception
net.createServer(assert.fail).listen({fd:0}).on('error', function(e) {
switch(e.code) {
switch (e.code) {
case 'EINVAL':
case 'ENOTSOCK':
gotError = e;

View File

@ -11,7 +11,7 @@ var accum = [];
var timeout;
src._read = function(n) {
if(!hasRead) {
if (!hasRead) {
hasRead = true;
process.nextTick(function() {
src.push(new Buffer('1'));

View File

@ -106,7 +106,7 @@ assert.ok(util.inspect(y), '[ \'a\', \'b\', \'c\', \'\\\\\\\': \'d\' ]');
function test_color_style(style, input, implicit) {
var color_name = util.inspect.styles[style];
var color = ['', ''];
if(util.inspect.colors[color_name])
if (util.inspect.colors[color_name])
color = util.inspect.colors[color_name];
var without_color = util.inspect(input, false, 0, false);