From be8268beeaaaeeab1c81b36d4fe2841e487c2fec Mon Sep 17 00:00:00 2001 From: "Harish.K" Date: Fri, 1 Apr 2016 01:22:26 +0530 Subject: [PATCH] more tests for it block --- test/simple-mocha.spec.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/simple-mocha.spec.js b/test/simple-mocha.spec.js index 04f9b1b..41b8000 100644 --- a/test/simple-mocha.spec.js +++ b/test/simple-mocha.spec.js @@ -38,7 +38,14 @@ describe( 'Simple before block + it s ', function(){ it( 'child describeBlock should parse it blocks', function(){ assert.equal( firsDescribeBlock.its.length, 2 ); + firsDescribeBlock.its.forEach( function( itBlk ){ + assert( itBlk ); + assert( itBlk.description ); + assert( itBlk.fn ); + }); }); + + }); })