From c9da05d37b6ed6beed5b4c5ecf7e72f556169e5a Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Tue, 17 Oct 2017 02:08:23 +0300 Subject: [PATCH] test: add missing spaces in concatenations PR-URL: https://github.com/nodejs/node/pull/16244 Reviewed-By: Yuta Hiroto Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Daniel Bevenius Reviewed-By: Luigi Pinca --- test/parallel/test-child-process-default-options.js | 2 +- test/parallel/test-cluster-basic.js | 2 +- test/parallel/test-promises-unhandled-rejections.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/parallel/test-child-process-default-options.js b/test/parallel/test-child-process-default-options.js index 18a5dd5e482505..a0ab2bfd4d98e9 100644 --- a/test/parallel/test-child-process-default-options.js +++ b/test/parallel/test-child-process-default-options.js @@ -45,6 +45,6 @@ child.stdout.on('data', function(chunk) { process.on('exit', function() { assert.ok(response.includes('HELLO=WORLD'), - 'spawn did not use process.env as default' + + 'spawn did not use process.env as default ' + `(process.env.HELLO = ${process.env.HELLO})`); }); diff --git a/test/parallel/test-cluster-basic.js b/test/parallel/test-cluster-basic.js index e3440518fb7b03..8a0a41f90c59d9 100644 --- a/test/parallel/test-cluster-basic.js +++ b/test/parallel/test-cluster-basic.js @@ -26,7 +26,7 @@ const assert = require('assert'); const cluster = require('cluster'); assert.strictEqual('NODE_UNIQUE_ID' in process.env, false, - `NODE_UNIQUE_ID (${process.env.NODE_UNIQUE_ID})` + + `NODE_UNIQUE_ID (${process.env.NODE_UNIQUE_ID}) ` + 'should be removed on startup'); function forEach(obj, fn) { diff --git a/test/parallel/test-promises-unhandled-rejections.js b/test/parallel/test-promises-unhandled-rejections.js index 4494e5084d224c..a00a7836252c91 100644 --- a/test/parallel/test-promises-unhandled-rejections.js +++ b/test/parallel/test-promises-unhandled-rejections.js @@ -182,7 +182,7 @@ asyncTest('When re-throwing new errors in a promise catch, only the' + }); }); -asyncTest('Test params of unhandledRejection for a synchronously-rejected' + +asyncTest('Test params of unhandledRejection for a synchronously-rejected ' + 'promise', function(done) { const e = new Error(); onUnhandledSucceed(done, function(reason, promise) { @@ -294,7 +294,7 @@ asyncTest('While inside setImmediate, catching a rejected promise derived ' + }); // State adapation tests -asyncTest('catching a promise which is asynchronously rejected (via' + +asyncTest('catching a promise which is asynchronously rejected (via ' + 'resolution to an asynchronously-rejected promise) prevents' + ' unhandledRejection', function(done) { const e = new Error(); @@ -378,7 +378,7 @@ asyncTest( ); // Combinations with Promise.all -asyncTest('Catching the Promise.all() of a collection that includes a' + +asyncTest('Catching the Promise.all() of a collection that includes a ' + 'rejected promise prevents unhandledRejection', function(done) { const e = new Error(); onUnhandledFail(done); @@ -662,7 +662,7 @@ asyncTest('nextTick is immediately scheduled when called inside an event' + }); asyncTest('Throwing an error inside a rejectionHandled handler goes to' + - ' unhandledException, and does not cause .catch() to throw an' + + ' unhandledException, and does not cause .catch() to throw an ' + 'exception', function(done) { clean(); const e = new Error();