Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

fix bug I should not have pushed by pushing a fix

Christopher Hillerb5d8513887e7
diff --git a/lib/interfaces/common.js b/lib/interfaces/common.js
index 4c9c4303..6384c7d4 100644
--- a/lib/interfaces/common.js
+++ b/lib/interfaces/common.js
@@ -142,9 +142,9 @@ module.exports = function(suites, context, mocha) {
if (typeof result !== 'undefined') {
utils.deprecate(
'Suites ignore return values. Suite "' +
- opts.fullTitle() +
+ suite.fullTitle() +
'" in ' +
- opts.file +
+ suite.file +
' returned a value; this may be a bug in your test code'
);
}