☕️ Classic, reliable, trusted test framework for Node.js and the browser
Consistent return of it.only, it and describe.only, describe (close #840)
Travis Jeffery7c8911b901c5
diff --git a/lib/interfaces/bdd.js b/lib/interfaces/bdd.jsindex e838109d..3a5b1ed6 100644--- a/lib/interfaces/bdd.js+++ b/lib/interfaces/bdd.js@@ -96,6 +96,7 @@ module.exports = function(suite){context.describe.only = function(title, fn){var suite = context.describe(title, fn);mocha.grep(suite.fullTitle());+ return suite;};/**@@ -120,6 +121,7 @@ module.exports = function(suite){var test = context.it(title, fn);var reString = '^' + utils.escapeRegexp(test.fullTitle()) + '$';mocha.grep(new RegExp(reString));+ return test;};/**