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>
This commit is contained in:
heeeunkimmm 2017-10-06 10:26:30 -07:00 committed by Ruben Bridgewater
parent 8baa325185
commit 3f95a8a69e
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -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}`);
}