Skip to content

Commit

Permalink
Merge pull request #2626 from postmanlabs/dependabot/npm_and_yarn/com…
Browse files Browse the repository at this point in the history
…mander-7.1.0

Chore(deps): bump commander from 6.2.1 to 7.1.0
  • Loading branch information
codenirvana committed Mar 11, 2021
2 parents 943dd9c + f33bd4e commit 24d13f7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
7 changes: 3 additions & 4 deletions bin/newman.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,9 @@ program
});
});

program.on('--help', function () {
console.info('\nTo get available options for a command:');
console.info(' newman <command> -h');
});
program.addHelpText('after', `
To get available options for a command:
newman <command> -h`);

// Warn on invalid command and then exits.
program.on('command:*', (command) => {
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"cli-progress": "3.9.0",
"cli-table3": "0.6.0",
"colors": "1.4.0",
"commander": "6.2.1",
"commander": "7.1.0",
"csv-parse": "4.15.3",
"eventemitter3": "4.0.7",
"filesize": "6.1.0",
Expand Down
4 changes: 2 additions & 2 deletions test/cli/run-options.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ describe('CLI run options', function () {
it('should display help message if no arguments are provided', function (done) {
exec('node ./bin/newman.js', function (code, stdout, stderr) {
expect(code, 'should have exit code of 1').to.equal(1);
expect(stdout).to.match(/Usage: newman*/);
expect(stderr).to.equal('');
expect(stderr).to.match(/Usage: newman*/);
expect(stdout).to.equal('');
done();
});
});
Expand Down
2 changes: 0 additions & 2 deletions test/unit/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ describe('cli parser', function () {

// explicitly match object to track addition/deletion of properties.
expect(opts).to.eql({
args: ['collection.json'],
rawArgs: null,
collection: 'collection.json',
reporters: ['cli'],
delayRequest: 0,
Expand Down

0 comments on commit 24d13f7

Please sign in to comment.