Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

upgrade commander

Christopher Hillere6e351963263
diff --git a/bin/_mocha b/bin/_mocha
index c37d49fe..a4d584d9 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -138,13 +138,13 @@ program
// --globals
-program.on('globals', function (val) {
+program.on('option:globals', function (val) {
globals = globals.concat(list(val));
});
// --reporters
-program.on('reporters', function () {
+program.on('option:reporters', function () {
console.log();
console.log(' dot - dot matrix');
console.log(' doc - html documentation');
@@ -165,7 +165,7 @@ program.on('reporters', function () {
// --interfaces
-program.on('interfaces', function () {
+program.on('option:interfaces', function () {
console.log('');
interfaceNames.forEach(function (interfaceName) {
console.log(' ' + interfaceName);
@@ -178,7 +178,7 @@ program.on('interfaces', function () {
module.paths.push(cwd, join(cwd, 'node_modules'));
-program.on('require', function (mod) {
+program.on('option:require', function (mod) {
var abs = exists(mod) || exists(mod + '.js');
if (abs) {
mod = resolve(mod);
diff --git a/package.json b/package.json
index ffcb3670..3382b643 100644
--- a/package.json
+++ b/package.json
@@ -306,7 +306,7 @@
},
"dependencies": {
"browser-stdout": "1.3.0",
- "commander": "2.9.0",
+ "commander": "2.11.0",
"debug": "3.1.0",
"diff": "3.2.0",
"escape-string-regexp": "1.0.5",