Browse Source

test: changed buffer-zero output

Added interpolated strings to display the error value

PR-URL: https://github.com/nodejs/node/pull/15926
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
v6.x-staging
heeeunkimmm 7 years ago
committed by Myles Borins
parent
commit
c53ed73891
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 2
      test/parallel/test-buffer-zero-fill-reset.js

2
test/parallel/test-buffer-zero-fill-reset.js

@ -15,5 +15,5 @@ function testUint8Array(ui) {
for (let i = 0; i < 100; i++) {
Buffer.alloc(0);
const ui = new Uint8Array(65);
assert.ok(testUint8Array(ui), 'Uint8Array is not zero-filled');
assert.ok(testUint8Array(ui), `Uint8Array is not zero-filled: ${ui}`);
}

Loading…
Cancel
Save