This commit is contained in:
2016-04-03 15:09:03 +05:30
parent c3e57625a8
commit 9dd02a0fe6
+2 -2
View File
@@ -50,7 +50,7 @@ function mkAsyncFn( fn ){
function ItBlock( description, fn ){ function ItBlock( description, fn ){
this.description = description; this.description = description;
this.fn = mkAsyncFn( fn ); this.fn = fn;
this.isSuccess = false; this.isSuccess = false;
} }
@@ -101,7 +101,7 @@ DescribeBlock.prototype.addChild = function( child ){
DescribeBlock.prototype.addItBlock = function( description, fn ){ DescribeBlock.prototype.addItBlock = function( description, fn ){
var itBlock = new ItBlock( description, fn ); var itBlock = new ItBlock( description, mkAsyncFn( fn ) );
itBlock.parent = this; itBlock.parent = this;
this.its.push( itBlock ); this.its.push( itBlock );
this.tasks.push( itBlock ); this.tasks.push( itBlock );