Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
perrin4869 committed Oct 30, 2024
1 parent 7948b1d commit 2b4b3c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/interfaces/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},

/**
Expand All @@ -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);
},

/**
Expand All @@ -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);
},

/**
Expand All @@ -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: {
Expand Down

0 comments on commit 2b4b3c1

Please sign in to comment.