Skip to content

Commit

Permalink
Update lib/interfaces/common.js
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Goldberg ✨ <[email protected]>
  • Loading branch information
alcuadrado and JoshuaKGoldberg authored Aug 3, 2024
1 parent b7412b3 commit 61e34db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/interfaces/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ module.exports = function (suites, context, mocha) {
}
if (typeof opts.fn === 'function') {
const suiteResult = opts.fn.call(suite);
if (suiteResult instanceof Promise) {
if (suiteResult !== undefined) {
errors.deprecate(
'[mocha] Suite "' +
suite.fullTitle() +
Expand Down

0 comments on commit 61e34db

Please sign in to comment.