Skip to content

Commit

Permalink
Disable debug mode by default (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
geek committed Aug 21, 2016
1 parent 3c76de0 commit 067c822
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ internals.options = function () {
verbose: false,
paths: ['test'],
coverage: false,
debug: true,
debug: false,
dry: false,
environment: 'test',
flat: false,
Expand Down
15 changes: 15 additions & 0 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,21 @@ describe('CLI', () => {
});
});

it('debug mode is disabled by default', (done) => {

RunCli(['test/cli_error/failure.js'], (error, result) => {

if (error) {
done(error);
}

expect(result.errorOutput).to.equal('');
expect(result.code).to.equal(1);
expect(result.combinedOutput).to.not.contain('Test script errors:');
done();
});
});

it('shows the help (-h)', (done) => {

RunCli(['-h'], (error, result) => {
Expand Down

0 comments on commit 067c822

Please sign in to comment.