Comparing version 1.4.1 to 1.4.2
@@ -73,3 +73,3 @@ var colors = require('colors'); | ||
var cb = genTestCallback(testsuite, test, function(error){ | ||
callback && callback(error); | ||
testsuite.options.ordered && callback(error); | ||
}); | ||
@@ -81,3 +81,4 @@ | ||
if (error) { | ||
throw error; | ||
testsuite.callback(error); | ||
return; | ||
} | ||
@@ -92,2 +93,3 @@ | ||
!testsuite.options.ordered && callback(); | ||
}); | ||
@@ -163,12 +165,3 @@ } | ||
try { | ||
if(options.ordered){ | ||
call(next); | ||
} else { | ||
call(); | ||
next(); | ||
} | ||
} catch(executionError) { | ||
testsuite.callback(executionError); | ||
} | ||
call(next); | ||
@@ -175,0 +168,0 @@ })(0); |
{ | ||
"name":"highkick", | ||
"version":"1.4.1", | ||
"version":"1.4.2", | ||
"description":"Asynchronous, no-style, super simple testing tool.", | ||
@@ -5,0 +5,0 @@ "author":"Azer Koculu <azer@kodfabrik.com>", |
@@ -20,3 +20,2 @@ var assert = require('assert'), | ||
highkick({ module:require('./init_fail'), 'silent':0, 'name':'init_fail' }, function(error, result){ | ||
console.log('@', error); | ||
assert.ok(error); | ||
@@ -23,0 +22,0 @@ callback(); |
11957
292