Skip to content

Commit 0cf3e10

Browse files
vsemozhetbytMylesBorins
authored andcommitted
test: remove unneeded string splitting
PR-URL: #12992 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Luca Maraschi <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 6e7b77f commit 0cf3e10

21 files changed

+54
-60
lines changed

test/parallel/test-cluster-dgram-1.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ const dgram = require('dgram');
99

1010

1111
if (common.isWindows) {
12-
common.skip('dgram clustering is currently not supported ' +
13-
'on windows.');
12+
common.skip('dgram clustering is currently not supported on Windows.');
1413
return;
1514
}
1615

test/parallel/test-cluster-dgram-2.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ const assert = require('assert');
99

1010

1111
if (common.isWindows) {
12-
common.skip('dgram clustering is currently not supported ' +
13-
'on windows.');
12+
common.skip('dgram clustering is currently not supported on Windows.');
1413
return;
1514
}
1615

test/parallel/test-cluster-dgram-reuse.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ const cluster = require('cluster');
55
const dgram = require('dgram');
66

77
if (common.isWindows) {
8-
common.skip('dgram clustering is currently not supported ' +
9-
'on windows.');
8+
common.skip('dgram clustering is currently not supported on windows.');
109
return;
1110
}
1211

test/parallel/test-cluster-fork-env.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ if (cluster.isWorker) {
3636

3737
process.once('exit', function() {
3838
assert.ok(checks.using, 'The worker did not receive the correct env.');
39-
assert.ok(checks.overwrite, 'The custom environment did not overwrite ' +
40-
'the existing environment.');
39+
assert.ok(
40+
checks.overwrite,
41+
'The custom environment did not overwrite the existing environment.');
4142
});
4243

4344
}

test/parallel/test-cluster-http-pipe.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const cluster = require('cluster');
66
const http = require('http');
77

88
if (common.isWindows) {
9-
common.skip('It is not possible to send pipe handles over ' +
10-
'the IPC pipe on Windows');
9+
common.skip(
10+
'It is not possible to send pipe handles over the IPC pipe on Windows');
1111
return;
1212
}
1313

test/parallel/test-cluster-worker-isdead.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ const assert = require('assert');
55

66
if (cluster.isMaster) {
77
const worker = cluster.fork();
8-
assert.ok(!worker.isDead(),
9-
'isDead() should return false right after the worker has been ' +
10-
'created.');
8+
assert.ok(
9+
!worker.isDead(),
10+
'isDead() should return false right after the worker has been created.');
1111

1212
worker.on('exit', function() {
1313
assert.ok(worker.isDead(),
14-
'After an event has been emitted, ' +
15-
'isDead should return true');
14+
'After an event has been emitted, isDead should return true');
1615
});
1716

1817
worker.on('message', function(msg) {

test/parallel/test-crypto-padding-aes256.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ crypto.DEFAULT_ENCODING = 'buffer';
1313
function aes256(decipherFinal) {
1414
const iv = Buffer.from('00000000000000000000000000000000', 'hex');
1515
const key = Buffer.from('0123456789abcdef0123456789abcdef' +
16-
'0123456789abcdef0123456789abcdef', 'hex');
16+
'0123456789abcdef0123456789abcdef', 'hex');
1717

1818
function encrypt(val, pad) {
1919
const c = crypto.createCipheriv('aes256', key, iv);

test/parallel/test-crypto-padding.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ const EVEN_LENGTH_ENCRYPTED =
4545
// openssl enc -aes-128-cbc -e -K 5333632e722e652e742e4b2e652e5921 \
4646
// -iv 626c616846697a7a3230313142757a7a -nopad | xxd -p -c256
4747
const EVEN_LENGTH_ENCRYPTED_NOPAD =
48-
'7f57859550d4d2fdb9806da2a750461ab46e' +
49-
'71b3d78ebe2d9684dfc87f7575b9';
48+
'7f57859550d4d2fdb9806da2a750461ab46e71b3d78ebe2d9684dfc87f7575b9';
5049

5150

5251
/*

test/parallel/test-domain-stack-empty-in-process-uncaughtexception.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ const assert = require('assert');
77
const d = domain.create();
88

99
process.on('uncaughtException', common.mustCall(function onUncaught() {
10-
assert.strictEqual(process.domain, null,
11-
'domains stack should be empty in uncaughtException' +
12-
' handler');
10+
assert.strictEqual(
11+
process.domain, null,
12+
'domains stack should be empty in uncaughtException handler');
1313
}));
1414

1515
process.on('beforeExit', common.mustCall(function onBeforeExit() {

test/parallel/test-http-expect-continue.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ let sent_continue = false;
1010
let got_continue = false;
1111

1212
function handler(req, res) {
13-
assert.strictEqual(sent_continue, true, 'Full response sent before ' +
14-
'100 Continue');
13+
assert.strictEqual(sent_continue, true,
14+
'Full response sent before 100 Continue');
1515
console.error('Server sending full response...');
1616
res.writeHead(200, {
1717
'Content-Type': 'text/plain',

0 commit comments

Comments
 (0)