Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Add `context` for BDD

hokaccha12b50358eee4
diff --git a/lib/interfaces/bdd.js b/lib/interfaces/bdd.js
index 5f66e0e8..56eadd9f 100644
--- a/lib/interfaces/bdd.js
+++ b/lib/interfaces/bdd.js
@@ -71,7 +71,7 @@ module.exports = function(suite){
* and/or tests.
*/
- context.describe = function(title, fn){
+ context.describe = context.context = function(title, fn){
var suite = Suite.create(suites[0], title);
suites.unshift(suite);
fn();