Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.testNoActionForOptionError = function () {
var parser = new test.Parser();
parser.option('-o');
assert.throwsError(function () {
parser.parse(['command', '-o']);
}, args.ConfigurationError);
};