From 4a664cea7d858bbfff964a7bdea61168c5dca565 Mon Sep 17 00:00:00 2001 From: heeeunkimmm Date: Fri, 6 Oct 2017 10:26:30 -0700 Subject: [PATCH] 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 --- test/parallel/test-buffer-zero-fill-reset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-buffer-zero-fill-reset.js b/test/parallel/test-buffer-zero-fill-reset.js index 3076b25ce637fc..334ee1b618b919 100644 --- a/test/parallel/test-buffer-zero-fill-reset.js +++ b/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}`); }