diff --git a/index-v1.js b/index-v1.js index b6e9eb9..0ce2b3e 100644 --- a/index-v1.js +++ b/index-v1.js @@ -50,7 +50,7 @@ function mkAsyncFn( fn ){ function ItBlock( description, fn ){ this.description = description; - this.fn = mkAsyncFn( fn ); + this.fn = fn; this.isSuccess = false; } @@ -101,7 +101,7 @@ DescribeBlock.prototype.addChild = function( child ){ DescribeBlock.prototype.addItBlock = function( description, fn ){ - var itBlock = new ItBlock( description, fn ); + var itBlock = new ItBlock( description, mkAsyncFn( fn ) ); itBlock.parent = this; this.its.push( itBlock ); this.tasks.push( itBlock );