Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Added `xdescribe()` and `xit()` to the BDD interface. Closes #263 (docs needed)

TJ Holowaychuk6cdca19eafa3
diff --git a/lib/interfaces/bdd.js b/lib/interfaces/bdd.js
index 1a06567c..5f66e0e8 100644
--- a/lib/interfaces/bdd.js
+++ b/lib/interfaces/bdd.js
@@ -28,6 +28,11 @@ module.exports = function(suite){
suite.on('pre-require', function(context){
+ // noop variants
+
+ context.xdescribe = function(){};
+ context.xit = function(){};
+
/**
* Execute before running tests.
*/