10BC0
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32fa915 commit 257ece2Copy full SHA for 257ece2
test/parallel/test-buffer-alloc.js
@@ -309,12 +309,12 @@ assert.strictEqual('TWFu', (Buffer.from('Man')).toString('base64'));
309
assert.strictEqual(quote, b.toString('ascii', 0, quote.length));
310
311
// check that the base64 decoder ignores whitespace
312
- const expectedWhite = expected.slice(0, 60) + ' \n' +
313
- expected.slice(60, 120) + ' \n' +
314
- expected.slice(120, 180) + ' \n' +
315
- expected.slice(180, 240) + ' \n' +
316
- expected.slice(240, 300) + '\n' +
317
- expected.slice(300, 360) + '\n';
+ const expectedWhite = `${expected.slice(0, 60)} \n` +
+ `${expected.slice(60, 120)} \n` +
+ `${expected.slice(120, 180)} \n` +
+ `${expected.slice(180, 240)} \n` +
+ `${expected.slice(240, 300)}\n` +
+ `${expected.slice(300, 360)}\n`;
318
b = Buffer.allocUnsafe(1024);
319
bytesWritten = b.write(expectedWhite, 0, 'base64');
320
assert.strictEqual( 39B8 quote.length, bytesWritten);
0 commit comments