Skip to content

Commit ed20142

Browse files
bwhittyMylesBorins
authored andcommitted
test: remove error messages in test-buffer-alloc
PR-URL: #15867 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent ee2ab90 commit ed20142

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/parallel/test-buffer-alloc.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,12 @@ assert.strictEqual('TWFu', (Buffer.from('Man')).toString('base64'));
309309
assert.strictEqual(quote, b.toString('ascii', 0, quote.length));
310310

311311
// 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';
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`;
318318
b = Buffer.allocUnsafe(1024);
319319
bytesWritten = b.write(expectedWhite, 0, 'base64');
320320
assert.strictEqual(quote.length, bytesWritten);

0 commit comments

Comments
 (0)