mirror of
https://github.com/harish2704/simple-mocha.git
synced 2026-09-10 06:21:08 +00:00
Cleanup
This commit is contained in:
+2
-2
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user