Skip to content

armgit / mocha

Public Imported from GitHub
0

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

tweak wording on "overspecification" exception

Christopher Hillerbf216d550900
diff --git a/lib/runnable.js b/lib/runnable.js
index 2492248e..d89a7dd5 100644
--- a/lib/runnable.js
+++ b/lib/runnable.js
@@ -366,7 +366,7 @@ Runnable.prototype.run = function(fn) {
return done(new Error('done() invoked with non-Error: ' + err));
}
if (result && utils.isPromise(result)) {
- return done(new Error('Asynchronous resolution method is overspecified. Specify a callback *or* return a Promise, not both.'));
+ return done(new Error('Resolution method is overspecified. Specify a callback *or* return a Promise; not both.'));
}
done();