test: add missing spaces in concatenations
PR-URL: https://github.com/nodejs/node/pull/16244 Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
c3eeb28c6d
commit
c9da05d37b
@ -45,6 +45,6 @@ child.stdout.on('data', function(chunk) {
|
|||||||
|
|
||||||
process.on('exit', function() {
|
process.on('exit', function() {
|
||||||
assert.ok(response.includes('HELLO=WORLD'),
|
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})`);
|
`(process.env.HELLO = ${process.env.HELLO})`);
|
||||||
});
|
});
|
||||||
|
@ -26,7 +26,7 @@ const assert = require('assert');
|
|||||||
const cluster = require('cluster');
|
const cluster = require('cluster');
|
||||||
|
|
||||||
assert.strictEqual('NODE_UNIQUE_ID' in process.env, false,
|
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');
|
'should be removed on startup');
|
||||||
|
|
||||||
function forEach(obj, fn) {
|
function forEach(obj, fn) {
|
||||||
|
@ -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) {
|
'promise', function(done) {
|
||||||
const e = new Error();
|
const e = new Error();
|
||||||
onUnhandledSucceed(done, function(reason, promise) {
|
onUnhandledSucceed(done, function(reason, promise) {
|
||||||
@ -294,7 +294,7 @@ asyncTest('While inside setImmediate, catching a rejected promise derived ' +
|
|||||||
});
|
});
|
||||||
|
|
||||||
// State adapation tests
|
// 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' +
|
'resolution to an asynchronously-rejected promise) prevents' +
|
||||||
' unhandledRejection', function(done) {
|
' unhandledRejection', function(done) {
|
||||||
const e = new Error();
|
const e = new Error();
|
||||||
@ -378,7 +378,7 @@ asyncTest(
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Combinations with Promise.all
|
// 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) {
|
'rejected promise prevents unhandledRejection', function(done) {
|
||||||
const e = new Error();
|
const e = new Error();
|
||||||
onUnhandledFail(done);
|
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' +
|
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) {
|
'exception', function(done) {
|
||||||
clean();
|
clean();
|
||||||
const e = new Error();
|
const e = new Error();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user