Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_mocha: Allow boolean --reporter-options #1754

Merged

Commits on Jun 18, 2015

  1. _mocha: Allow boolean --reporter-options

    Previously "mocha --reporter-options foo" would blow up because an equal sign is required. This is quite unhandy for reporters that need to accept boolean (flag-ish) options.
    
    This commit changes that so that a value-less reporter option will be interpreted as having a value of true.
    
    This means that --reporter-options foo=bar,quux will turn into { foo: 'bar', quux: true }
    papandreou committed Jun 18, 2015
    Configuration menu
    Copy the full SHA
    6379414 View commit details
    Browse the repository at this point in the history