Skip to content

Commit

Permalink
test: changed buffer-zero output
Browse files Browse the repository at this point in the history
Added interpolated strings to display the error value

PR-URL: nodejs/node#15926
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
garlicbrie authored and addaleax committed Oct 11, 2017
1 parent d249a1b commit c851677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-buffer-zero-fill-reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}

0 comments on commit c851677

Please sign in to comment.