Skip to content

Commit 7a25c2c

Browse files
TrottMylesBorins
authored andcommitted
test: improve assertion error message in test-debug-usage
PR-URL: #30913 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent b7a0574 commit 7a25c2c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/parallel/test-debug-usage.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ child.on('exit', common.mustCall(function(code) {
2424
const outputLines = actualUsageMessage.split('\n');
2525
assert.strictEqual(code, 1);
2626
for (let i = 0; i < expectedLines.length; i++)
27-
assert(expectedLines[i].test(outputLines[i]));
27+
assert.ok(
28+
expectedLines[i].test(outputLines[i]),
29+
`${outputLines[i]} did not match ${expectedLines[i]}`
30+
);
2831
}));

0 commit comments

Comments
 (0)