Skip to content

Commit 147fa3c

Browse files
vsemozhetbytOlivier Martin
authored andcommitted
test: remove unneeded string splitting
PR-URL: nodejs#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 d5d290b commit 147fa3c

22 files changed

+57
-63
lines changed

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

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

3131

3232
if (common.isWindows) {
33-
common.skip('dgram clustering is currently not supported ' +
34-
'on windows.');
33+
common.skip('dgram clustering is currently not supported on Windows.');
3534
return;
3635
}
3736

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

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

3131

3232
if (common.isWindows) {
33-
common.skip('dgram clustering is currently not supported ' +
34-
'on windows.');
33+
common.skip('dgram clustering is currently not supported on Windows.');
3534
return;
3635
}
3736

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
@@ -57,8 +57,9 @@ if (cluster.isWorker) {
5757

5858
process.once('exit', function() {
5959
assert.ok(checks.using, 'The worker did not receive the correct env.');
60-
assert.ok(checks.overwrite, 'The custom environment did not overwrite ' +
61-
'the existing environment.');
60+
assert.ok(
61+
checks.overwrite,
62+
'The custom environment did not overwrite the existing environment.');
6263
});
6364

6465
}

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

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

2929
if (common.isWindows) {
30-
common.skip('It is not possible to send pipe handles over ' +
31-
'the IPC pipe on Windows');
30+
common.skip(
31+
'It is not possible to send pipe handles over the IPC pipe on Windows');
3232
return;
3333
}
3434

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
@@ -34,7 +34,7 @@ crypto.DEFAULT_ENCODING = 'buffer';
3434
function aes256(decipherFinal) {
3535
const iv = Buffer.from('00000000000000000000000000000000', 'hex');
3636
const key = Buffer.from('0123456789abcdef0123456789abcdef' +
37-
'0123456789abcdef0123456789abcdef', 'hex');
37+
'0123456789abcdef0123456789abcdef', 'hex');
3838

3939
function encrypt(val, pad) {
4040
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
@@ -66,8 +66,7 @@ const EVEN_LENGTH_ENCRYPTED =
6666
// openssl enc -aes-128-cbc -e -K 5333632e722e652e742e4b2e652e5921 \
6767
// -iv 626c616846697a7a3230313142757a7a -nopad | xxd -p -c256
6868
const EVEN_LENGTH_ENCRYPTED_NOPAD =
69-
'7f57859550d4d2fdb9806da2a750461ab46e' +
70-
'71b3d78ebe2d9684dfc87f7575b9';
69+
'7f57859550d4d2fdb9806da2a750461ab46e71b3d78ebe2d9684dfc87f7575b9';
7170

7271

7372
/*

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
@@ -31,8 +31,8 @@ let sent_continue = false;
3131
let got_continue = false;
3232

3333
function handler(req, res) {
34-
assert.strictEqual(sent_continue, true, 'Full response sent before ' +
35-
'100 Continue');
34+
assert.strictEqual(sent_continue, true,
35+
'Full response sent before 100 Continue');
3636
console.error('Server sending full response...');
3737
res.writeHead(200, {
3838
'Content-Type': 'text/plain',

0 commit comments

Comments
 (0)