From d75a3f61d7d396092f7ac9f8ba5c3fa25fcad691 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 12 Dec 2019 09:28:09 -0500 Subject: [PATCH] test: improve assertion error message in test-debug-usage PR-URL: https://github.com/nodejs/node/pull/30913 Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca --- test/parallel/test-debug-usage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-debug-usage.js b/test/parallel/test-debug-usage.js index a264029f434a5a..4582ac7bb5b6e2 100644 --- a/test/parallel/test-debug-usage.js +++ b/test/parallel/test-debug-usage.js @@ -24,5 +24,8 @@ child.on('exit', common.mustCall(function(code) { const outputLines = actualUsageMessage.split('\n'); assert.strictEqual(code, 1); for (let i = 0; i < expectedLines.length; i++) - assert(expectedLines[i].test(outputLines[i])); + assert.ok( + expectedLines[i].test(outputLines[i]), + `${outputLines[i]} did not match ${expectedLines[i]}` + ); }));