Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
_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 }
- Loading branch information