From 9dd02a0fe642c8ec35ac56800fc2931c17345e01 Mon Sep 17 00:00:00 2001 From: "Harish.K" Date: Sun, 3 Apr 2016 15:09:03 +0530 Subject: [PATCH] Cleanup --- index-v1.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );