diff --git a/lib/interfaces/common.js b/lib/interfaces/common.js index ba8b5f85ed..d6656b8cc6 100644 --- a/lib/interfaces/common.js +++ b/lib/interfaces/common.js @@ -57,7 +57,7 @@ module.exports = function (suites, context, mocha) { * @param {Function} fn */ before: function (name, fn) { - suites[0].beforeAll(name, fn); + return suites[0].beforeAll(name, fn); }, /** @@ -67,7 +67,7 @@ module.exports = function (suites, context, mocha) { * @param {Function} fn */ after: function (name, fn) { - suites[0].afterAll(name, fn); + return suites[0].afterAll(name, fn); }, /** @@ -77,7 +77,7 @@ module.exports = function (suites, context, mocha) { * @param {Function} fn */ beforeEach: function (name, fn) { - suites[0].beforeEach(name, fn); + return suites[0].beforeEach(name, fn); }, /** @@ -87,7 +87,7 @@ module.exports = function (suites, context, mocha) { * @param {Function} fn */ afterEach: function (name, fn) { - suites[0].afterEach(name, fn); + return suites[0].afterEach(name, fn); }, suite: {