Skip to content

Commit

Permalink
test: improve assertion error message in test-debug-usage
Browse files Browse the repository at this point in the history
PR-URL: #30913
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
Trott authored and BethGriggs committed Feb 6, 2020
1 parent 9bc5c9f commit d75a3f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/parallel/test-debug-usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]}`
);
}));

0 comments on commit d75a3f6

Please sign in to comment.