☕️ Classic, reliable, trusted test framework for Node.js and the browser
Add "specify" synonym for "it".
Domenic Denicolac80646632b0b
diff --git a/lib/interfaces/bdd.js b/lib/interfaces/bdd.jsindex 56eadd9f..e0285dac 100644--- a/lib/interfaces/bdd.js+++ b/lib/interfaces/bdd.js@@ -84,7 +84,7 @@ module.exports = function(suite){* acting as a thunk.*/- context.it = function(title, fn){+ context.it = context.specify = function(title, fn){suites[0].addTest(new Test(title, fn));};});diff --git a/test/acceptance/interfaces/bdd.js b/test/acceptance/interfaces/bdd.jsindex 9e95817d..f738f883 100644--- a/test/acceptance/interfaces/bdd.js+++ b/test/acceptance/interfaces/bdd.js@@ -22,4 +22,14 @@ describe('Array', function(){arr.should.eql([1,2]);})})-})\ No newline at end of file+})++context('Array', function(){+ beforeEach(function(){+ this.arr = [1,2,3];+ })++ specify('has a length property', function(){+ this.arr.length.should.equal(3);+ })+})