We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d8ef42 commit d3740d8Copy full SHA for d3740d8
test/parallel/test-cli-node-print-help.js
@@ -44,11 +44,13 @@ function validateNodePrintHelp() {
44
function testForSubstring(options) {
45
if (options.compileConstant) {
46
options.flags.forEach((flag) => {
47
- assert.strictEqual(stdOut.indexOf(flag) !== -1, true);
+ assert.strictEqual(stdOut.indexOf(flag) !== -1, true,
48
+ `Missing flag ${flag} in ${stdOut}`);
49
});
50
} else {
51
- assert.strictEqual(stdOut.indexOf(flag), -1);
52
+ assert.strictEqual(stdOut.indexOf(flag), -1,
53
+ `Unexpected flag ${flag} in ${stdOut}`);
54
55
}
56
0 commit comments