☕️ 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.jsindex 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();